cmd/go: include source dir in cache key when ${SRCDIR} is present in cgo header #36471
Comments
When this is fixed, we should also test with |
Moving to backlog milestone. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I did:
${SRCDIR}
Result:
ld: warning: directory not found for option '-L/Users/josh/...redacted...
The redacted directory is the previous directory pointed to by the
${SRCDIR}
directive in the cgo sources.After a
go clean -cache
, the error disappeared.I suspect that cmd/go's caching may be too effective here. It probably doesn't take into account the absolute path containing the project, but it may need to when the
${SRCDIR}
cgo directive is present.cc @bcmills @jayconrod
The text was updated successfully, but these errors were encountered: