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

rev in [sources] is ignored unless there's also the url specification #4165

Open
giordano opened this issue Feb 21, 2025 · 0 comments
Open
Labels

Comments

@giordano
Copy link
Contributor

Instantiate the following environment:

[deps]
Example = "7876af07-990d-54b4-ab0e-23690620f79a"

[sources]
Example = {rev = "ba3d6704f09330ae973773496a4212f85e0ffe45"}

You get

(tmp) pkg> st
Status `/tmp/Project.toml`
  [7876af07] Example v0.5.5

The rev specification is completely ignored, unless you have also the url:

[deps]
Example = "7876af07-990d-54b4-ab0e-23690620f79a"

[sources]
Example = {url = "https://github.com/JuliaLang/Example.jl", rev = "ba3d6704f09330ae973773496a4212f85e0ffe45"}

Note: this is not related to #4157, it can be replicated in a clean system without modifying a Project file in an already resolved environment, resolving/instantiating the fresh environment just ignores the lone rev.

julia> versioninfo()
Julia Version 1.13.0-DEV.96
Commit 3c02af98dca (2025-02-21 00:36 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 22 × Intel(R) Core(TM) Ultra 7 155H
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, alderlake)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 22 virtual cores)
@giordano giordano added the bug label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant