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 can't install maven dependencies with top-level build directory #1037

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

cheister
Copy link
Collaborator

#1028

Just change the downloaded file path so it does not create a build directory when using http_file.

@shs96c
Copy link
Collaborator

shs96c commented Jan 16, 2024

Couldn't we just rename all our BUILD files to BUILD.bazel? That would avoid needing to do this work, and seems to be what is now common practice in the bazel OSS community (looking at the rulesets in bazel-contrib?

@cheister
Copy link
Collaborator Author

Couldn't we just rename all our BUILD files to BUILD.bazel? That would avoid needing to do this work, and seems to be what is now common practice in the bazel OSS community (looking at the rulesets in bazel-contrib?

This isn't a problem with a BUILD file we write, it's one generated by http_file and it checks if there is already a BUILD file in the path, on a case-insensitive file system it compares the build/ directory to BUILD and fails. So the workaround is to not have build/ in the downloaded_file_path passed to http_file

Copy link
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the clarification. I'd missed that entirely

@cheister
Copy link
Collaborator Author

Should also address #970

@cheister cheister merged commit fbd1a5a into bazel-contrib:master Jan 16, 2024
8 checks passed
@cheister cheister deleted the jvm_external_issue_1028 branch January 16, 2024 21:12
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