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

Disable version control tagging for dendrite build #1306

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

devonh
Copy link
Contributor

@devonh devonh commented Oct 17, 2022

This change disables tagging the dendrite binary with version control information. This allows running sytest with docker on dendrite source code that was mounted from a git worktree directory.

Motivation:
If running go install/build inside of a git repository, go relies on it being a fully functioning repository in order to tag the binary with relevant build information. If that git repository is not fully functioning then go install/build will fail.
When mounting a git worktree into a docker container the git repository is broken unless you have also mounted the entire filesystem path up to that point. This is due to git worktrees not supporting relative paths.
To prevent from having to either manipulate default git worktree setups or adding further complexity to the dendrite mounting procedure, it is simplest to disable the version control tagging in the go install command.

@devonh devonh requested a review from a team as a code owner October 17, 2022 19:41
@DMRobertson DMRobertson requested review from a team and removed request for a team October 18, 2022 15:17
@devonh devonh merged commit ac50609 into matrix-org:develop Oct 19, 2022
@devonh devonh deleted the git-worktree-support branch October 19, 2022 04:03
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.

2 participants