Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config file location returned by hatch config find is not right on windows #1921

Open
abulgher opened this issue Feb 25, 2025 · 0 comments
Open

Comments

@abulgher
Copy link

Current behavior

When typing from prompt the command hatch config find I get a path to the current configuration file. This path matches the expected position according to the documentation for a windows installation. But the file is not existing. If I try to open it with an editor or if I try to navigate there with File Explorer, the file is not there.

If I manually create the config.toml in the expected directory with default values, this is not used. In fact if I change a variable this change is not reflected with what I get with hatch config show.

If I set a variable using hatch config set variable value, the configuration is changed (visible by doing hatch config show but the change is visible in the configuration file at the expected location.

The fact that the config set is actually working makes me thinking that hatch is actually saving the variable to a configuration file, but this is not where it should.

Expected behavior

The config.toml file should be available at the location pointed by hatch config find.

Additional context

hatch has been installed using pipx, via pipx install hatch

I have a similar hatch installation done via pipx but on linux (Ubuntu 22.04.5 LTS) and there everything works.

Debug

Installation

  • Source: pip
  • Version: 1.14.0
  • Platform: Windows
  • Python version:
    3.12.7 (tags/v3.12.7:0b05ead, Oct  1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
    

Configuration

mode = "local"
shell = "nu"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant