Add configuration input for pixi global settings#248
Draft
Conversation
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>
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>
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.
Enables setting pixi global configuration (e.g.,
run-post-link-scripts = "insecure") directly in the action instead of requiring manual workarounds.Changes
configurationinput accepting TOML formatwritePixiConfig()function with TOML validation and error handlingsmol-tomlparser~/.pixi/config.tomlalready exists (prevents overwriting existing configurations)Usage
Configuration is written to
~/.pixi/config.tomland applies to all subsequent pixi commands.Note: The action will fail with an error if a config file already exists at
~/.pixi/config.toml. Remove any existing file before using this feature.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.