CliMA / PkgDevTools.jl

Some utility functions for helping with customized Pkg.jl operations
MIT License
3 stars 0 forks source link

Batch mode? #10

Open Sbozzolo opened 3 months ago

Sbozzolo commented 3 months ago

Would it be possible to provide a second entry point so that update_deps can be run on all the environments in root without user interaction?

In other words, I would like to use PkgDevTools as

julia -e 'using PkgDevTools; update_deps_batch("project.jl")`

and have all the Manifests.toml updated.

(Then, I would like to put this in a GitHub Action and have it automatically run)

charleskawczynski commented 3 months ago

can be run on all the environments in root without user interaction?

Yeah, this should be easy enough.

What would the "project.jl" be used for? I typically run using PkgDevTools; update_deps() locally. We could even leave the name and just check if isinteractive().

Sbozzolo commented 3 months ago

I meant project.jl as target folder (ie, root). (Sorry, it was impossible to deduce from the context)

charleskawczynski commented 3 months ago

Ah, also, if we want to use this in GHAs in Clima repos, I'll probably move this to be a clima repo.