-
Notifications
You must be signed in to change notification settings - Fork 18k
x/blog: builds failing on release-branch.go1.12 due to missing dependencies #37337
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
Comments
golang.org/x repos are intentionally tested in GOPATH mode on release-branch.go1.12 branches, and in module mode (as long as a go.mod file is present) on release-branch.go1.13 branches and newer. Builders have support for testing with third-party packages in golang.org/x repos only in module mode. No packages in x/blog import x/website/markdown package yet, so it's strange that it is attempted to be built in GOPATH mode. Need to understand why that is. |
Okay, the |
How does the builder set up the workspace? I assumed the builder would
I didn't think about this when I added the Markdown rendering, but Perhaps instead, all the generator code should be moved from |
Change https://golang.org/cl/220358 mentions this issue: |
Answered in person, but for posterity, the code is in |
Change https://golang.org/cl/251120 mentions this issue: |
This change prevents ./cmd/golangorg and other binaries that depend on ./content/static from transitively importing ./markdown. At this time, ./markdown is only needed for code generation (via go generate) and for testing. It does not need to be linked into ./cmd/golangorg. x/blog imports ./content/static. The transitive import of github.com/yuin/goldmark causes Go 1.12 builders to fail because they run in GOPATH mode, and they forbid dependencies outside the golang.org/x repos. Fixes golang/go#37337 Change-Id: I938c06cdea66d6e08ac27d28f089026b42db9062 Reviewed-on: https://go-review.googlesource.com/c/website/+/220358 Run-TryBot: Jay Conrod <jayconrod@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
In CL 218517, we added an external dependency to the
x/website
repo.Somehow, that resulted in test failures for the
x/blog
repo (https://build.golang.org/log/c8db93d879bffec55c15c341dc5082bdde79a770):It appears that the
x/blog
tests onrelease-branch.go1.12
are not running in module mode. They probably should be.CC @jayconrod @dmitshur @cagedmantis @toothrot
The text was updated successfully, but these errors were encountered: