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

No configs found on invalid config #2326

Open
2 tasks done
chris-aeviator opened this issue Oct 21, 2024 · 0 comments
Open
2 tasks done

No configs found on invalid config #2326

chris-aeviator opened this issue Oct 21, 2024 · 0 comments

Comments

@chris-aeviator
Copy link

chris-aeviator commented Oct 21, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

echo "x}{" >> pyproject.toml # this produces an invalid configuration
❯ pixi info --manifest-path pyproject.toml

Issue description

When using pixi info with an invalid config, the output will indicate that there are "no config files found".

When subsequently calling another pixi command (e.g. pixi shell) pixi will rightfully complain about the corrupt config file.

Incorrect behavior

❯ pixi info --manifest-path pyproject.toml
      Pixi version: 0.30.0
          Platform: linux-64
  Virtual packages: __unix=0=0
                  : __linux=5.18.1=0
                  : __glibc=2.35=0
                  : __archspec=1=skylake
         Cache dir: /home/REDACTED/.cache/rattler/cache
      Auth storage: /home/REDACTEDrattler/credentials.json
  Config locations: No config files found

as opposed to the correct

❯ pixi shell -e my_awesome_env
   ╭─[pyproject.toml:57:29]
 56 │ [tool.pixi.feature.my_awesome_feature]
 57 │ pypi-dependencies = {something= {version = "*", git = "https://github.com/REDACTED/REDACTED" }, skypilot = {version = ">=0.6.1,<1", extras = ["gcp"] },
 hiyapyco={version=">=0.6.1,<1"}, cryptography = {version = ">=43.0.1"}, pyarrow = "*"}
    ·                             ────────────────────────────────┬────────────────────────────────
    ·                                                             ╰── `version` cannot be used with `git`
 58 │ platforms = ["linux-64"]
    ╰────

Expected behavior

pixi info should show the same configuration parser error as other pixi commands.

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