Comments (8)
I’m not 100% sure I understand why this is necessary.
Why not check in test/Project.toml
instead of test/Manifest.toml
, docs/Project.toml
instead of docs/Manifest.toml
, and benchmark/Project.toml
instead of benchmark/Manifest.toml
.
And then, in those Project.toml
files, either don’t have any compat entries, or if you do have compat entries, make them of the form >= x.y.z
.
Then the test
, docs
, benchmark
projects will automatically use the latest versions of their dependencies.
The only reason that the CompatHelper.jl bot is necessary is because we strongly recommend having upper-bounded compat entries in your package’s main Project.toml
file. We don’t have a similar recommendation for the test
, docs
, benchmark
projects, so I don’t think you needed upper-bounded compat entries in those projects.
from compathelper.jl.
You need to check in subproject manifests {test,docs,benchmark}/Manifest.toml
if
- you are using non-registered packages as dependencies
- you want reproducible test, documentation build, and benchmarks
OK, technically, I can write a build script for each subproject to achieve those goals. But it'd be great if I don't have to re-implement what Pkg already does.
from compathelper.jl.
I guess this is doable. CompatHelper would cd
into the docs
folder and run julia --project -e 'import Pkg; Pkg.instantiate(); Pkg.update()'
. And then repeat that for all of the folders.
You would provide a vector ["test", "docs", "benchmark"]
to let me know which projects you want me to update.
from compathelper.jl.
That sounds great. Or maybe even add another API CompatHelper.main(precommit_hook)
so that I can just do
run: |-
julia -e '
using CompatHelper
CompatHelper.main() do
run(`julia --project=test -e 'import Pkg; Pkg.instantiate(); Pkg.update()'`)
run(`julia --project=docs -e 'import Pkg; Pkg.instantiate(); Pkg.update()'`)
end
'
and you can avoid dealing with similar feature requests?
from compathelper.jl.
Not a terrible idea
from compathelper.jl.
@tkf Can you try the feature out?
from compathelper.jl.
@tkf It would be great to add a section to the README documenting the precommit_hook
feature. Would you be willing to write up a brief explanation, along with the example YAML snippet? And make a PR?
from compathelper.jl.
I'll send a PR 👍
from compathelper.jl.
Related Issues (20)
- [FR] Ignore a given package HOT 3
- Document how to deal with GitHub disabling CompatHelper workflows after 60 days of inactivity HOT 1
- Does CompatHelper send PRs to update project.toml files in subdirectories? HOT 1
- GH Action tests are not triggered by CompatHelper PR 2 HOT 3
- Using org-level DOCUMENTER_KEY
- run fails for lack of permissions HOT 1
- CompatHelper stopped working on Bokeh.jl HOT 2
- Feature request: Check other PRs Project modifications before opening a PR
- CompatHelper on GHA: Started erroring with pkg_server_registry_url not defined HOT 6
- Why clone once per subdir? HOT 1
- Don't bump compat for equality specifiers HOT 2
- We should improve our fork check
- Pleqase, only one PR to add/update all compat entries HOT 1
- CompatHelper keeps creating new branches for the same change HOT 1
- Feature request: open PRs to update compat entries for weak dependencies (`[weakdeps]`) HOT 3
- Feature request: allow receiving PRs for minor releases of specific packages
- We need to start opening PRs to add/update compat entries for stdlibs HOT 3
- Bug: PR opened to add older version to existing compat
- Private key is not in the correct format
- FR: Auto convert overly restrictive stdlib compat entries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compathelper.jl.