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.

Proposal: Add option to emit paket.lock as JSON

See original GitHub issue

What

Add an option to Paket that changes to format of paket.lock to JSON

Why?

The exact use case for me is to parse the paket.lock file to generate Bazel targets for each NuGet package. If the lock file would be in JSON it makes it easier for other tools to parse the lock file since JSON is supported by all programming/scripting languages.

Other use cases:

  • Parse the lock file to send to dependency analysis tools

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
baronfelcommented, Oct 29, 2021

Big 👍 from me on this one, I know that having this would make efforts like @TheAngryByrd’s attempted integration with Dependabot easier, for example.

1reaction
baronfelcommented, Oct 29, 2021

@forki we could potentially do it in a staged fashion as well, where the lock file could be the output of a command (paket show lock file --json) while keeping the existing file as the source of truth. This might help to prove out the formatting/syntax, before committing to it as the full lock file format.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Getting Started with Paket – Part 1 - The Cockney Coder
lock file means that your dependencies cannot drift across projects, since there's only one version per dependency. Note: There's a paket ...
Read more >
Stop using package-lock.json or yarn.lock | by Gajus Kuizinas
I maintain over 200 repositories on GitHub and one of the most common PRs that I receive is someone adding package-lock.json or yarn.lock....
Read more >
package.json
Description. This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just...
Read more >
Tooling for Your .NET Projects
Figure 1: A paket.lock file showing indented transitive dependencies. These files make Paket use simple, thorough, and convenient. Why should ...
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