Skip to content
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

fix: add touch to initialize $bash_env #138

Merged
merged 2 commits into from
Jun 9, 2023
Merged

Conversation

brivu
Copy link
Contributor

@brivu brivu commented Jun 9, 2023

Currently if the in the config.sh script, we run . $BASH_ENV in Alpine Linux to access environment variables passed from a previous step. However, if $BASH_ENV has not been created before this script is run, the build fails with this error:

/bin/bash: line 3: /tmp/.bash_env-63ff46c43d2fa51fdd8a6998-0-build: No such file or directory

To fix this issue, we must run touch $BASH_ENV first as suggested in this Discuss post:
https://support.circleci.com/hc/en-us/articles/360048353271-Accessing-BASH-ENV-Results-in-No-such-file-or-directory-

@brivu brivu self-assigned this Jun 9, 2023
@brivu brivu requested a review from a team as a code owner June 9, 2023 21:08
@brivu brivu linked an issue Jun 9, 2023 that may be closed by this pull request
@brivu brivu changed the title fix: add touch to initialize bashenv fix: add touch to initialize $bash_env Jun 9, 2023
@brivu brivu merged commit 9d90944 into master Jun 9, 2023
2 checks passed
@brivu brivu deleted the fix/alpine-source-bashenv branch June 9, 2023 23:11
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.

"File not found" issue on Alpine Linux
2 participants