Skip to content

Conversation

@martinemde
Copy link
Owner

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

claude and others added 3 commits December 2, 2025 07:22
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants