question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add ability to emit a lock file

See original GitHub issue

the coursier CLI has a resolve option and -t but the output is more useful for humans than tools.

Would you be open to a PR to add the ability to emit a JSON lock file?

I imagine it would list all the constraints that went in (all the artifacts + versions), and then list the minDependencies optionally including sha256 hashes of all the artifacts.

This is suitable for checking into a version control for a fully reproducible description of the classpath used to build.

This protects people from mutable changes in repositories (which are possible) causing hard to diagnose issues (not noticing that the resolution changed).

If this sounds like it would be useful, I can see about sending some PRs to implement this.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aucampiacommented, May 30, 2022

Actually fetch, launch, bootstrap and install should also be able to operate with a lockfile

1reaction
aucampiacommented, May 30, 2022

I think what would be quite ideal is if resolve was able to emit json - similar to cs fetch --json-output-file ... - and then for cs fetch to be able to use that, so for example:

cs resolve org.codehaus.groovy:groovy-all:3.0+ --json-output-file /var/tmp/coursier-lock.json
cs fetch --json-input-file /var/tmp/coursier-lock.json
Read more comments on GitHub >

github_iconTop Results From Across the Web

File Locking - GitLab Docs
Locks can be created by any person who has at least Developer role in the repository. Only the user who locked the file...
Read more >
c# - Lock a file while retaining the ability to read/append/write ...
I want to implement the following behaviour: When the application is started, lock the file so that no other applications (or user itself)...
Read more >
Locking & Unlocking Files - Box Support
Locking & Unlocking Files · Right-click a file (or click the ellipses (...)) to open the More Options menu. · Click Lock. ·...
Read more >
Generating a complete lock-file without installing #5738 - GitHub
To have a command/option for emitting a complete lock-file like with yarn install . Please mention your node.js, yarn and operating system ...
Read more >
Enable repeatable package restores using a lock file
We are happy to announce that we have now introduced the ability to lock your project's package dependency graph via a lock file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found