-
Notifications
You must be signed in to change notification settings - Fork 502
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
Automatically commit changes to lockfiles #2252
Comments
See also yarnpkg/yarn#4147 for some more discussion about (frozen) lockfiles and CI. |
Workflow regeneration and formatting are implemented as To implement this, we need know which command needs to executed after bumping the version and under which condition this hook would be executed, for example is it executed when the project depends on a specific library/plugin or only if specific dependencies are updated? |
Thanks for getting back to me with those pointers! That is very very helpful.
We'd want to execute
This is quite tricky I think. Relevant conditions:
I don't think that there's a good way to check (2). Transitive npm dependencies are communicated to downstreams via manifest files included in the jars, so this is not easily accessible. Not sure if it's a good idea but the easy way out would be to just run this when any dependency is updated 🙃 Anyway thanks again, I'm going to take this under advisement, do some more research into ScalaJS bundler and steward, and see if I can put together a PR :) |
It would be ideal if this could be done in one sbt command.
Checking if the project depends on that plugin is easy. If
It would probably also require more modifcations to Scala Steward than for checking if
Running the above sbt command for every update on every project would slow down Scala Steward considerably. But it would be fine with me if we introduce a |
Of course, apologies, I meant only for repos/projects with the
Actually, maybe an easier thing to do would be to just look for a
Maybe this command could be added upstream in the ScalaJSBundler plugin, I'll look into it 👍 |
Checking for |
Thanks! This sounds do-able 😄 |
Update on this:
Since nobody else seems to have a need for this, I will close the issue. Thanks again for your time Frank, sorry that it was all for nothing 🙃 |
This is a bit of a new issue (at least in typelevel projects) after adding some JS cross-builds that also have npm dependencies.
For example in fs2 3.1.2 we updated the npm dependency to
@types/node
in typelevel/fs2#2594.This change caused steward PRs to cross-building downstreams to fail, because they needed to update their (frozen) lockfiles.
http4s/http4s#5182
typelevel/skunk#545
I wonder if updating/committing the lockfile could be implemented in a way similar to how steward does GH workflow regeneration or formatting after scala format is updated?
I'm happy to work on a PR for this if I could get some pointers about the where/how :)
The text was updated successfully, but these errors were encountered: