Skip to content

Commit 69f17b2

Browse files
committed
vendor: migrate from govendor to go mod vendor
The rsc.io/pdf package was added to the vendor directory 5 years ago in CL 13968, back when the vendor directory was a part of the Go 1.5 vendor experiment. The vendor.json file was written by hand in a format compatible with the govendor tool. By now, that tool has been deprecated in favor of the go command in module mode. A go.mod file requiring a newer version of rsc.io/pdf was added in CL 167137. Modify the vendor directory to use the newer rsc.io/pdf version by recreating vendor directory using go command in Go 1.14: rm -rf vendor go mod vendor It's possible the vendor directory isn't needed anymore and can be safely deleted in a future change. The scope of this CL is only to migrate from the deprecated govendor tool to the supported go tool; deleting the vendor directory can still be done in a future change. Remove the explicit mention of Go 1.5 vendor experiment from README since it's old, and not relevant by now. Add a contributing section. Updates golang/go#30228 Updates golang/go#33848 Change-Id: I95de95a3b2d81faf7235c675e5b8d425141f8d7a Reviewed-on: https://go-review.googlesource.com/c/arch/+/222538 Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 368ea8f commit 69f17b2

File tree

7 files changed

+14
-30
lines changed

7 files changed

+14
-30
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,11 @@
33
This repository holds machine architecture information used by the Go toolchain.
44
The parts needed in the main Go repository are copied in.
55

6-
This repository requires Go 1.5+ with the vendor experiment enabled.
6+
## Report Issues / Send Patches
7+
8+
This repository uses Gerrit for code changes. To learn how to submit changes to
9+
this repository, see https://golang.org/doc/contribute.html.
10+
11+
The main issue tracker for the arch repository is located at
12+
https://github.com/golang/go/issues. Prefix your issue with "x/arch:" in the
13+
subject line, so it is easy to find.

vendor/modules.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# rsc.io/pdf v0.1.1
2+
rsc.io/pdf

vendor/rsc.io/pdf/lex.go

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/rsc.io/pdf/page.go

+1-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/rsc.io/pdf/ps.go

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/rsc.io/pdf/read.go

+3-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/vendor.json

-10
This file was deleted.

0 commit comments

Comments
 (0)