-
Notifications
You must be signed in to change notification settings - Fork 20
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
A LazyBroadcast as a dependency #3541
Conversation
@Sbozzolo, can you please update documentation about how to add dependencies? It's not clear, or working for me locally. For example, I'm running julia> using Revise; include("test/dependencies.jl")
Detected stale dependencies: Set(["LazyBroadcast"])
Please, edit the dependencies.jl file
Test Failed at /Users/charliekawczynski/Dropbox/Caltech/work/dev/CliMA/ClimaAtmos.jl/test/dependencies.jl:88
Expression: direct_dependencies == known_dependencies
Evaluated: Set(["ClimaCore", "Statistics", "ClimaUtilities", "Thermodynamics", "ClimaDiagnostics", "Random", "CloudMicrophysics", "ClimaComms", "FastGaussQuadrature", "Interpolations" … "Dates", "StaticArrays", "ClimaParams", "NCDatasets", "UnrolledUtilities", "SurfaceFluxes", "Logging", "DiffEqBase", "ArtifactWrappers", "ArgParse"]) == Set(["ClimaCore", "Statistics", "ClimaUtilities", "Thermodynamics", "ClimaDiagnostics", "Random", "CloudMicrophysics", "ClimaComms", "FastGaussQuadrature", "Interpolations" … "Dates", "StaticArrays", "ClimaParams", "NCDatasets", "UnrolledUtilities", "SurfaceFluxes", "Logging", "DiffEqBase", "ArtifactWrappers", "ArgParse"])
ERROR: LoadError: There was an error during testing
in expression starting at /Users/charliekawczynski/Dropbox/Caltech/work/dev/CliMA/ClimaAtmos.jl/test/dependencies.jl:88 Also, julia> using Pkg
help?> Pkg.project
Pkg.project()::ProjectInfo
This feature is considered experimental.
Request a ProjectInfo struct which contains information about the active project.
ProjectInfo fields |
Would extending the comment to this help?
I checked your branch locally and it works on my end. Could it be that you had a stale Manifest? |
I didn't realize it was experimental. If I remember correctly, the alternative was a much uglier code that had to traverse trees to find the dependencies. I can look to see if there's other ways. |
600d581
to
a939695
Compare
I might suggest updating the comment to:
? I can open this suggestion in a separate PR
Ah, no, sorry, it was my fault. I didn't realize we upgraded ClimaAtmos to Julia 1.11, which seemed to be the issue. |
Just leaving a comment that this PR to me indicates that there's a problem with our workflows. We shouldn't need to add a dependency to ClimaAtmos that is now pushed onto every developer/user just because it simplifies rebasing someone's development branch. I think that removing the number of checked Manifests would help with this (and other things as well) |
The manifests are an important ingredient for reproducibility, I'm not sure that we can get rid of them, unfortunately. |
I think we can remove most of them and only have a |
Yeah, I guess that's true. Thanks! |
A step towards #3594.
This PR adds LazyBroadcast as a dependency, to help prevent #3540 from becoming stale.