-
Notifications
You must be signed in to change notification settings - Fork 633
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
Fail to build github.com/mattn/go-sqlite3 with Bazel 3.7.0 #2685
Comments
Got the same issue |
Confirmed this is broken. Looking into whether this is a Bazel regression or a newly exposed rules_go bug. |
jayconrod
pushed a commit
to jayconrod/rules_go
that referenced
this issue
Oct 23, 2020
The go command uses -I for package directories, which makes directories available for "" and <> includes. We should do the same. We no longer use ctx.build_file_path, since that directory might not actually provide any build files, and its value changed in Bazel 3.7.0. Fixes bazelbuild#2685
This was referenced Oct 23, 2020
jayconrod
pushed a commit
that referenced
this issue
Oct 23, 2020
The go command uses -I for package directories, which makes directories available for "" and <> includes. We should do the same. We no longer use ctx.build_file_path, since that directory might not actually provide any build files, and its value changed in Bazel 3.7.0. Fixes #2685
Please check if #2687 solves this for you. If so, I'll tag a point release next week. bazelbuild/bazel#12344 is the upstream issue. |
jayconrod
pushed a commit
that referenced
this issue
Oct 26, 2020
The go command uses -I for package directories, which makes directories available for "" and <> includes. We should do the same. We no longer use ctx.build_file_path, since that directory might not actually provide any build files, and its value changed in Bazel 3.7.0. Fixes #2685
jayconrod
pushed a commit
that referenced
this issue
Oct 26, 2020
The go command uses -I for package directories, which makes directories available for "" and <> includes. We should do the same. We no longer use ctx.build_file_path, since that directory might not actually provide any build files, and its value changed in Bazel 3.7.0. Fixes #2685
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Upgraded Bazel from 3.6.0 to 3.7.0 and some dependencies relying on cgo started failing. Downgrading to 3.6.0 fixes the issue.
Similar to #526
What version of rules_go are you using?
Tested on 0.21.7 and 0.24.4
What version of gazelle are you using?
Tested on 0.21.1 and 0.22.2
What version of Bazel are you using?
Only 3.7.0, previous versions work just fine
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux/amd64
What did you do?
Run
bazel build //...
in a empty project with Bazel 3.7.0 and Bazel 3.6.0Project gist: https://gist.github.com/eugene-dounar/e8d1d6ab16f7e02d7f97e85229f3916c
What did you expect to see?
Successfull build on 3.7.0
What did you see instead?
The text was updated successfully, but these errors were encountered: