-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
build: map in the full teamcity alternates directory #47799
build: map in the full teamcity alternates directory #47799
Conversation
Release note: None
|
||
teamcity_alternates="/home/agent/system/git/" | ||
if test -d "${teamcity_alternates}"; then | ||
vols="${vols} --volume=${teamcity_alternates}:${teamcity_alternates}${cached_volume_mode}" |
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.
Could we dirname
the result of the previous version? I think that would do the trick without being as TC specific.
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.
So alternates_path=$(dirname $(cat "${alternates_file}"))
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.
Probably. I'm just looking for the sledgehammer fix here. We can follow-up with a cleaner fix if this PR actually works.
I think we could also look for alternates
files in other .git
directories.
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.
LGTM
Some of the bors r+ |
Build failed |
Examples-ORMs failure. Hoping it was just a flake. bors r+ |
Build succeeded |
Release note: None