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

pixi install --frozen is not behaving as expected when no lockfile is available #371

Closed
2 tasks done
pavelzw opened this issue Oct 3, 2023 · 1 comment · Fixed by #373
Closed
2 tasks done

pixi install --frozen is not behaving as expected when no lockfile is available #371

pavelzw opened this issue Oct 3, 2023 · 1 comment · Fixed by #373
Labels
🐞 bug Something isn't working

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Oct 3, 2023

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

❯ pixi init
✔ Initialized project in /private/tmp/pixi-test/.
❯ pixi add python
✔ Added python 3.11.5.*
❯ ls -la
.rw-r--r--   63 pavel  3 Okt 10:39 .gitattributes
.rw-r--r--   27 pavel  3 Okt 10:39 .gitignore
drwxr-xr-x    - pavel  3 Okt 10:39 .pixi
.rw-r--r-- 7,3k pavel  3 Okt 10:39 pixi.lock
.rw-r--r--  240 pavel  3 Okt 10:39 pixi.toml
❯ rm -rf .pixi pixi.lock
❯ ls -la
.rw-r--r--  63 pavel  3 Okt 10:39 .gitattributes
.rw-r--r--  27 pavel  3 Okt 10:39 .gitignore
.rw-r--r-- 240 pavel  3 Okt 10:39 pixi.toml
❯ pixi install --frozen
✔ Project in /private/tmp/pixi-test is ready to use!
❯ ls -la
.rw-r--r--  63 pavel  3 Okt 10:39 .gitattributes
.rw-r--r--  27 pavel  3 Okt 10:39 .gitignore
.rw-r--r-- 240 pavel  3 Okt 10:39 pixi.toml
❯ pixi install --locked
  × Lockfile not up-to-date with the project

Issue description

pixi doesn't do anything when no lockfile is available.

Expected behavior

It should crash when no lockfile is available.

@pavelzw pavelzw added the 🐞 bug Something isn't working label Oct 3, 2023
@ruben-arts
Copy link
Contributor

Thanks! Will look at it right away!

baszalmstra pushed a commit that referenced this issue Oct 3, 2023
closes #371 

Error when there is no lockfile and the `--frozen` option is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants