fix(ci): bypass AWS profile prompt in CI environment#12
Open
martinemde wants to merge 3 commits intomainfrom
Open
fix(ci): bypass AWS profile prompt in CI environment#12martinemde wants to merge 3 commits intomainfrom
martinemde wants to merge 3 commits intomainfrom
Conversation
The CI workflow was failing because chezmoi's promptStringOnce was trying to prompt for an AWS profile in a non-interactive environment. Changes: - Add AWS_PROFILE environment variable support to install.sh - Update CI workflow to set AWS_PROFILE="" to bypass the prompt - Document new AWS_PROFILE env var in install.sh help text The AWS_PROFILE variable can be set to an empty string for environments like CI, or to a specific profile name to bypass the interactive prompt during installation. Fixes the error: chezmoi: template: chezmoi.toml:14:19: executing "chezmoi.toml" at <promptStringOnce ...>: error calling promptStringOnce: could not open a new TTY: open /dev/tty: no such device or address
The CI was failing with EACCES errors when npm tried to create directories in /usr/local/share/man/man7. This happened because when mise installs Node.js, npm attempts to set up global directories that require root permissions. Changes: - Add .npmrc to configure npm to use local directories - Set npm prefix to ~/.local/npm-global to avoid permission issues - Disable global package installations and install-links - Add bun install step to CI workflow to install dependencies This repository uses bun for package management (per CLAUDE.md), so npm should not be used directly. The .npmrc ensures that if npm is invoked, it won't try to write to global directories.
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.
The CI workflow was failing because chezmoi's promptStringOnce was
trying to prompt for an AWS profile in a non-interactive environment.
Changes:
The AWS_PROFILE variable can be set to an empty string for
environments like CI, or to a specific profile name to bypass
the interactive prompt during installation.
Fixes the error:
chezmoi: template: chezmoi.toml:14:19: executing "chezmoi.toml" at
<promptStringOnce ...>: error calling promptStringOnce: could not
open a new TTY: open /dev/tty: no such device or address