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.

[feature] Strict mode for lockfile creation that fails if no PREV is available

See original GitHub issue

We maintain our own remote with custom packages and use lockfiles to ensure reproducible builds. When a developer wants to update a package or add a new one, they’re expected to use our CI/CD infrastructure to publish a new conan package to our remote and then update the lockfiles on the repos that consume conan packages. This usually works but there is a frequent issue: sometimes when a lockfiles gets re-created we end up with a node that has no prev on it. This is usually because the dev did somenthing wrong on the conanfile. This situation is hard to catch since our lockfiles are pretty big and not all of our developers are big on conan, so they don’t know what they’re looking at. In our case if you commit a lockfile that has (at least) one node without PR, the CI/CD builds that validate PRs fail since there’s no package available upstream and we don’t use --build=missing.

I was wondering if we could add a --strict switch to the lockfile creation command that errors out if there is no package available for a given reference, that way we can catch this issues ASAP.

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ericriffcommented, Aug 16, 2022

Awesome! Exiting times ahead of us. Thanks for the info 😃

0reactions
memshardedcommented, Aug 16, 2022

We are about to do 2.0-beta.3, it is getting ready quickly, I’d expect a couple of releases more until GA. It might require a bit more time to let ConanCenter catch-up and update a reasonable amount of recipes, but otherwise the Conan client will be ready soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add --frozen-lockfile flag to error on install with missing lockfile ...
I guess what's required is a strict install mode. That said, there is already a PR that adds poetry lock --check #1954 for...
Read more >
Locking dependency versions - Gradle User Manual
Strict mode. In this mode, in addition to the validations above, dependency locking will fail if a configuration marked as locked does not...
Read more >
Do I commit the package-lock.json file created by npm 5?
Yes, package-lock.json is intended to be checked into source control. If you're using npm 5+, you may see this notice on the command...
Read more >
Locking and Unlocking Byte Ranges in Files - Win32 apps
The LockFile and LockFileEx functions lock a specified range of bytes in a file. The range may extend beyond the current end of...
Read more >
IaC describe - Snyk User Docs
Note: This feature is available in Snyk CLI version v1.876.0 or greater. ... If parsing the lockfile fails, errors are logged and scan...
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