-
Notifications
You must be signed in to change notification settings - Fork 21
Add configuration input for pixi global settings #248
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
base: main
Are you sure you want to change the base?
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>
| 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)}`) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
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.