File: README

package info (click to toggle)
golang-1.12 1.12.7-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, experimental, sid
  • size: 113,080 kB
  • sloc: asm: 97,488; ansic: 8,245; perl: 2,243; sh: 1,895; xml: 623; python: 349; makefile: 127; cpp: 22; f90: 8; awk: 7
file content (25 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
How to update the vendored packages:

Assuming the govendor tool is available
run the govendor tool from src/cmd directory

  $ go get -u github.com/kardianos/govendor

To update packages used by cmd/pprof:

  $ cd $GOROOT/src/cmd
  $ GOPATH=$GOROOT govendor fetch github.com/google/pprof/...

To update packages used by internal/objfile/*:

  $ GOPATH=$GOROOT govendor fetch golang.org/x/arch/...

GOPATH=$GOROOT in the above commands is a hack to
make govendor work and will create the .cache folder in
$GOROOT as a side-effect. Please make sure to delete
the directory and not to include the directory in the
commit by accident.

The vendored copy of golang.org/x/tools is maintained by
running the update-xtools.sh script in this directory,
not by govendor.