Timing issue when renaming ~/.bashrc to ~/.profile
See original GitHub issueI use the action on a self-hosted runner. The VM is powerful and I run several Github Action runner instances on it.
From time to time the job fails with:
Initializing conda shell integration...
/home/ubuntu/miniconda/condabin/conda init --all
no change /home/ubuntu/miniconda/condabin/conda
no change /home/ubuntu/miniconda/bin/conda
no change /home/ubuntu/miniconda/bin/conda-env
no change /home/ubuntu/miniconda/bin/activate
no change /home/ubuntu/miniconda/bin/deactivate
no change /home/ubuntu/miniconda/etc/profile.d/conda.sh
no change /home/ubuntu/miniconda/etc/fish/conf.d/conda.fish
no change /home/ubuntu/miniconda/shell/condabin/Conda.psm1
no change /home/ubuntu/miniconda/shell/condabin/conda-hook.ps1
no change /home/ubuntu/miniconda/lib/python3.8/site-packages/xontrib/conda.xsh
no change /home/ubuntu/miniconda/etc/profile.d/conda.csh
no change /home/ubuntu/.bashrc
no change /home/ubuntu/.zshrc
no change /home/ubuntu/.config/fish/config.fish
no change /home/ubuntu/.xonshrc
no change /home/ubuntu/.tcshrc
No action taken.
Renaming "/home/ubuntu/.bashrc" to "/home/ubuntu/.profile"
Error: ENOENT: no such file or directory, rename '/home/ubuntu/.bashrc' -> '/home/ubuntu/.profile'
I use remove-profiles: false
but it seems this does not prevent the renaming.
Could this be improved to be more friendly to such self-hosted setups ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Git for Windows doesn't execute my .bashrc file - Stack Overflow
I renamed my '.bashrc' -> '.bash_profile' and relaunched Git Bash. ... for Windows (2.8.3.windows.1) uses a 'profile' file now instead of the .bash_profile....
Read more >MinGW Bash profile - Super User
I have a .bashrc with some aliases in it. The file is in my home folder which is where MinGW starts me in,...
Read more >Why doesn't .bashrc run automatically? - Ask Different
The issue is that Terminal creates login shells, and Bash login shells only run the login startup script, not ~/.bashrc . However, the...
Read more >Renaming .bash_profile to .profile - The UNIX and Linux Forums
Now we have the following options: 1. Change all the scripts where ever .profile is being used and replace it with .bash_profile. 2....
Read more >Set up a WSL development environment - Microsoft Learn
Learn how to run the command to install the default Bash shell that ... You will have to configure a Linux user account...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @martin-g sorry for the late reply. We will look into it!
It renamed also my .bashrc to .profile. The problem: .profile already existed and was overridden! This is not Ok and should at least be mentioned as important. .profile is used by our web shell and was broken for some hours. Too much hidden system modifications for a github action.