Giter VIP home page Giter VIP logo

Comments (8)

DilumAluthge avatar DilumAluthge commented on June 6, 2024

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.

tkf avatar tkf commented on June 6, 2024

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.

DilumAluthge avatar DilumAluthge commented on June 6, 2024

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.

tkf avatar tkf commented on June 6, 2024

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.

DilumAluthge avatar DilumAluthge commented on June 6, 2024

Not a terrible idea

from compathelper.jl.

DilumAluthge avatar DilumAluthge commented on June 6, 2024

@tkf Can you try the feature out?

from compathelper.jl.

DilumAluthge avatar DilumAluthge commented on June 6, 2024

@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.

tkf avatar tkf commented on June 6, 2024

I'll send a PR 👍

from compathelper.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.