Repository navigation
feat: Add configuration input for pixi global settings - #248
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add option to specify pixi global configuration
Add configuration input for pixi global settings
Jan 28, 2026
pavelzw
reviewed
Jan 28, 2026
Comment on lines
+39
to
+45
| let parsedNewConfig: Record<string, unknown> | ||
| try { | ||
| parsedNewConfig = parse(configuration) | ||
| core.debug(`Parsed configuration: ${JSON.stringify(parsedNewConfig)}`) | ||
| } catch (error) { | ||
| throw new Error(`Invalid TOML configuration: ${error instanceof Error ? error.message : String(error)}`) | ||
| } |
Collaborator
There was a problem hiding this comment.
@copilot let's just throw an error when the config file already exists. we don't allow creating a configuration file when it already exists
Collaborator
There was a problem hiding this comment.
@copilot let's just throw an error when the config file already exists. we don't allow creating a configuration file when it already exists
Contributor
Author
There was a problem hiding this comment.
Changed to throw an error when config file already exists instead of merging. Commit fb4aedb.
Co-authored-by: pavelzw <29506042+pavelzw@users.noreply.github.com>
Co-authored-by: pavelzw <29506042+pavelzw@users.noreply.github.com>
Co-authored-by: pavelzw <29506042+pavelzw@users.noreply.github.com>
Co-authored-by: pavelzw <29506042+pavelzw@users.noreply.github.com>
Co-authored-by: pavelzw <29506042+pavelzw@users.noreply.github.com>
…p config in post step - Fix existing-file check swallowing its own error (config was silently overwritten) - Write configuration verbatim (keeps comments/formatting) with atomic 'wx' create - Write to $PIXI_HOME/config.toml if PIXI_HOME is set - Remove the written config file in the post-cleanup step - Fix tests (python version, checkout pin) and add negative tests - Rebuild dist
pavelzw
force-pushed
the
copilot/allow-global-configuration-pixi
branch
from
November 1, 2026 13:58
fb4aedb to
6dea66d
Compare
pavelzw
marked this pull request as ready for review
November 1, 2026 14:22
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
configurationinput to set global pixi configuration (e.g.run-post-link-scripts = "insecure") directly in the action.Behavior
$PIXI_HOME/config.toml(~/.pixi/config.tomlby default), right after pixi is installed and before any pixi command runs.wx).post-cleanup: true(default), the config file written by the action is removed in the post step. A config that already existed is never removed.Tests
configuration: writes config on Linux/macOS/Windows, checks it was written verbatim and thatpixi config listsees itconfiguration-already-exists: action fails, existing file stays unchangedconfiguration-invalid-toml: action fails, no file is writtenCloses #224