-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Bazel build being run for non-Bazel projects, causing errors #1370
Comments
…el}` Signed-off-by: Florian Heubeck <[email protected]>
…el}` Signed-off-by: Florian Heubeck <[email protected]>
Heya :) I have to go through legal approval at my company to submit PRs for an open source project that we use internally (yay bureaucracy) so if you guys have the bandwidth to do it, I'd appreciate it, but otherwise it'll probably take like a week to get the legal approvals to do a PR, which I can do if needed. But also I think it should look for these files to cover the bases
As the error suggests we can only run Bazel build commands from "below a directory having a WORKSPACE file" so even just looking for |
Thanks @MCDong for trying. I would still suggest to continue trying to become a contributor to have a more active role in the project. I will keep researching about your suggestion to use workspace and modules and share another PR. Thank you for sharing! |
In here
https://github.com/CycloneDX/cdxgen/blob/master/index.js#L1899-L1902
Seems to be matching
build.gradle
files, and so it tries to runbazel build //...
I get the error message
I think the
getAllFiles
should be changed, or it should be looking for Bazel WORKSPACE files instead.This can be replicated by just cloning this repo, and adding an empty
build.gradle
file in the root of this repo and runningThe text was updated successfully, but these errors were encountered: