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 request] fetch/resolve json report

See original GitHub issue

Hi,

I am trying to integrate coursier with Pants build tool as a replacement for the existing ivy resolver. The goal is to have Pants to hand off the 3rdparty resolution/fetch job to coursier, then parse its result.

Currently the command line is great,

./coursier resolve -t (or -T) <artifacts ...>

but it is not machine friendly. To start with, essentially I would require, e.g. json representation of the tree, and potentially the reason for conflict resolution.

I am not very familiar with code base or Scala, so is it something an existing contributor can achieve relatively quickly? If not, can someone kindly point me to the relevant code?

Thanks, Yi

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Globegittercommented, Jun 4, 2019

While https://github.com/coursier/coursier/commit/a4258f48ce7e9a3b432dc5227ab9cd2dfdc2471a did add a --json-output-file for the fetch command it did not add this for the resolve command - would it be trivial to also add it to resolve @wisechengyi ?

0reactions
jincommented, Jun 4, 2019

+1 to @Globegitter - this is really useful for Bazel as we can leverage Coursier’s resolution + Bazel’s highly cacheable download mechanism, as long as we have a way to parse the JSON output reliably from resolve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the Fetch API - MDN Web Docs
The Fetch API provides a JavaScript interface for accessing and manipulating parts of the protocol, such as requests and responses.
Read more >
How to Use the Fetch API (Correctly) - CODE Magazine
Open the appsettings.json file and modify the connection string to point to your SQL Server where you installed the AdventureWorksLT database.
Read more >
Response.json() never resolves #665 - node-fetch ... - GitHub
I have an interesting issue with request that essentially never finishes. ... The correct solution is to resolve cloned response in parallel.
Read more >
Handling requests with fetch - DEV Community ‍ ‍
This week I got to rewrite our apps requests from using axios to using the Fetch API. Let's get int... Tagged with javascript,...
Read more >
How To Use the JavaScript Fetch API to Get Data - DigitalOcean
In this tutorial, you will create both GET and POST requests using the Fetch API.
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