mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![Sebastiaan van Stijn](/assets/img/avatar_default.png)
With this change, go packages/modules that use versioned
import paths (github.com/foo/bar/v2), but don't use a directory
in the repository, can now be supported.
For example:
```
github.com/coreos/go-systemd/v22 v22.0.0
```
will vendor the github.com/coreos/go-systemd repository
into `vendor/github.com/coreos/go-systemd/v22`.
full diff: f5ab8fc5fb
...v0.1.0
- LK4D4/vndr#83 migrate bitbucket to api 2.0
- fixes LK4D4/vndr#82 https://api.bitbucket.org/1.0/repositories/ww/goautoneg: 410 Gone
- LK4D4/vndr#86 Replace sort.Sort with sort.Strings
- LK4D4/vndr#87 support `github.com/coreos/go-systemd/v22`
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
11 lines
356 B
Bash
Executable file
11 lines
356 B
Bash
Executable file
#!/bin/sh
|
|
|
|
: "${VNDR_COMMIT:=d385c05e4c23b602dd16b3d2a1a6c710919bf02f}" # v0.1.0
|
|
|
|
install_vndr() {
|
|
echo "Install vndr version $VNDR_COMMIT"
|
|
git clone https://github.com/LK4D4/vndr.git "$GOPATH/src/github.com/LK4D4/vndr"
|
|
cd "$GOPATH/src/github.com/LK4D4/vndr" || exit 1
|
|
git checkout -q "$VNDR_COMMIT"
|
|
go build -buildmode=pie -v -o "${PREFIX}/vndr" .
|
|
}
|