-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add pixi update --json
#1437
Comments
What would you like to output of this command to look like? |
{
"py38": {
"linux-64": {
"python": {
"before": {
"version": "3.9.0",
"build": "h12debd9_0"
},
"after": {
"version": "3.9.0",
"build": "h12debd9_0"
},
"changed": "no" // one of no, build, major, minor, patch, added, removed
// if added or removed, the before or after are null
},
"polars": {
"before": {
"version": "0.10.0",
"build": "py38h1f7f2b9_0"
},
"after": {
"version": "0.10.1",
"build": "py38h1faeeb9_1"
},
"changed": "patch"
}
... how about something like this? |
Seems simple enough! Just the |
I would also be fine with |
But wouldnt this already be present from the fact that "before" and "after" exist or not?
|
yes, that's a bit smarter than my idea 😅 then let's not include |
we probably also need to add pypi dependencies there: {
"py38": {
"linux-64": {
"python": {
"before": {
"version": "3.9.0",
"build": "h12debd9_0"
},
"after": {
"version": "3.9.0",
"build": "h12debd9_0"
},
"type": "conda"
},
"polars": {
"before": {
"version": "0.10.0"
},
"after": {
"version": "0.10.1"
},
"type": "pypi"
}
... how about this? |
Sure thing! |
Almost done with the markdown generator 🤩 {
"py38": {
"linux-64": {
"python": {
"before": {
"version": "3.9.0",
"build": "h12debd9_0"
},
"after": {
"version": "3.9.0",
"build": "h12debd9_0"
},
"type": "conda",
"explicit": true
},
"polars": {
"before": {
"version": "0.10.0"
},
"after": {
"version": "0.10.1"
},
"type": "pypi",
"explicit": false
}
...
|
Fixes #1437 Schema: ```json { "environment": { "linux-64": [ { "name": "zstd", "before": { "version": "1.5.5", "build": "hfc55251_0" }, "after": { "version": "1.5.6", "build": "ha6fb4c9_0" }, "type": "conda" "explicit": false } ] } } ``` @pavelzw Let me know what you think! I changed to an array instead of a dictionary because a package changing from conda to pypi is represented as a removal followed by an insert. The `explicit` flag is only present if its value is `true`. @ruben-arts This is missing a test! Waiting for Pavel to give me the green light first. ### TODO: - [x] Documentation, add it to the reference/cli.md - [x] Full record spec in json output
Fixes prefix-dev#1437 Schema: ```json { "environment": { "linux-64": [ { "name": "zstd", "before": { "version": "1.5.5", "build": "hfc55251_0" }, "after": { "version": "1.5.6", "build": "ha6fb4c9_0" }, "type": "conda" "explicit": false } ] } } ``` @pavelzw Let me know what you think! I changed to an array instead of a dictionary because a package changing from conda to pypi is represented as a removal followed by an insert. The `explicit` flag is only present if its value is `true`. @ruben-arts This is missing a test! Waiting for Pavel to give me the green light first. ### TODO: - [x] Documentation, add it to the reference/cli.md - [x] Full record spec in json output
Problem description
#73 (comment)
I would like to create an internal dependabot replacement that calls
pixi update
and generates some markdown diffs. I planned to make the json-to-md renderer open source after that :)I don't think it would make sense to let pixi create markdown directly since eventual dependabot/renovate config will probably do their own implementation.
The text was updated successfully, but these errors were encountered: