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 build pixi.lock doesn't include proper version #2600

Closed
2 tasks done
pavelzw opened this issue Nov 29, 2024 · 4 comments
Closed
2 tasks done

pixi build pixi.lock doesn't include proper version #2600

pavelzw opened this issue Nov 29, 2024 · 4 comments

Comments

@pavelzw
Copy link
Contributor

pavelzw commented Nov 29, 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

Quantco/polarify#81

# pixi.toml
[project]
name = "polarify"
# <version not set here>
# ...
[package]
version = "0.2.0"
# ...

Issue description

pixi.lock looks like this:

- conda: .
  name: polarify
  version: 0.1.0
  build: pyhbf21a9e_0
  subdir: noarch
  depends:
  - python
  input:
    hash: 4f79b562092ea284f5aee2a320868102e5a32984839c350c8f78170339fe2516
    globs:
    - pixi.toml

Expected behavior

pixi.lock should look like this:

- conda: .
  name: polarify
  version: 0.2.0
  build: pyhbf21a9e_0
  subdir: noarch
  depends:
  - python
  input:
    hash: 4f79b562092ea284f5aee2a320868102e5a32984839c350c8f78170339fe2516
    globs:
    - pixi.toml
@pavelzw
Copy link
Contributor Author

pavelzw commented Nov 29, 2024

when i set my project.version to 0.2.0 (before, it was unset), it works.
what is package.version supposed to be used for?

@jsjtadie

This comment has been minimized.

@wolfv
Copy link
Member

wolfv commented Nov 29, 2024

This would fix the issue about taking the version from [package]: prefix-dev/pixi-build-backends#21 (assuming you use the python build backend).

@wolfv
Copy link
Member

wolfv commented Nov 29, 2024

Should be fixed with the latest build backend release. Note that you currentyl have to clean it manually, locally, in the cache dir, e.g. something like rm -rf /Users/wolfv/Library/Caches/rattler/cache/cached-build-envs-v0/

@wolfv wolfv closed this as completed Nov 29, 2024
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

3 participants