-
Notifications
You must be signed in to change notification settings - Fork 207
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
go_test path issue #184
Comments
This looks like a GOPATH issue. If I add the following to
By default it's set to include Thoughts? |
I was hoping this would be a tiny bug somewhere :( I think the |
I think that makes sense, yes, adding the current package to GOPATH should be easy & hopefully intuitive. |
Is the hard-coding of For context, I was just messing with a Go project + Please for the first time and was immediately bit by this (I like kebabs more than snakes and set things up using the pattern |
I guess not well enough then :) The relevant config section is Setting it to |
I seem unable to build a
go_test
with a third party dependency in the same BUILD file when the BUILD file is NOT in the repo root. I've created https://github.com/dimpavloff/plz-go-test-bug which shows that.plz build //:mylib_tests
worksplz build //go:mylib_tests
(which has identical BUILD and srcs) fails withcan't find import: "github.com/stretchr/testify/assert"
. If I change//go:mylib_tests
's dependency from:testify
to//:testifyRoot
, it builds fine.The text was updated successfully, but these errors were encountered: