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

Warning when activating test environment in 1.8 #43

Open
ufechner7 opened this issue Apr 10, 2022 · 3 comments
Open

Warning when activating test environment in 1.8 #43

ufechner7 opened this issue Apr 10, 2022 · 3 comments

Comments

@ufechner7
Copy link

On Julia 1.8-beta3, I always get the following warning:

julia> using TestEnv; TestEnv.activate()
┌ Warning: The project dependencies or compat requirements have changed since the manifest was last resolved.
│ It is recommended to `Pkg.resolve()` or consider `Pkg.update()` if necessary.
└ @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.8/Pkg/src/API.jl:1527
"/tmp/jl_sHrfez/Project.toml"

Can this be fixed in in TestEnv.jl ?

@oxinabox oxinabox changed the title Warning when activating test environment Warning when activating test environment in 1.8 May 10, 2022
@oxinabox
Copy link
Member

Some digging will need to be done.
we call instantiate here:

Pkg.instantiate(ctx)

which errors because of the code here:
https://github.com/JuliaLang/Pkg.jl/blob/16c3d6a7ad0075a56c8da300811b0e5249ab9e39/src/API.jl#L1526-L1529
which is calling
https://github.com/JuliaLang/Pkg.jl/blob/16c3d6a7ad0075a56c8da300811b0e5249ab9e39/src/Operations.jl#L2184-L2193

@IanButterworth
Copy link

This should only happen if the Project.toml has been changed after the last resolve. (It's supposed to flag that, so you don't end up with a manifest that isn't a valid resolve of the project)

Does that happen in TestEnv?

@oxinabox
Copy link
Member

It effectively generates a new Project.toml (possibly literally, I would need to check)

The code in the release-1.8 is basically taken direct from Pkg v1.7's source.

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