Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
New filenames: Gopkg.toml and Gopkg.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynvs committed Apr 6, 2017
1 parent a068a3c commit e31a186
Show file tree
Hide file tree
Showing 45 changed files with 10 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions cmd/dep/testdata/harness_tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ The directory structure is as follows:
testcase.json
initial/
file1.go
manifest.toml
Gopkg.toml
...
final/
manifest.toml
lock.toml
Gopkg.toml
Gopkg.lock
case2/
...

Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (c *Ctx) SourceManager() (*gps.SourceMgr, error) {
// a project root. If an absolute path is given, the search begins in that
// directory. If a relative or empty path is given, the search start is computed
// from the current working directory. The search stops when a file with the
// name ManifestName (manifest.toml, by default) is located.
// name ManifestName (Gopkg.toml, by default) is located.
//
// The Project contains the parsed manifest as well as a parsed lock file, if
// present. The import path is calculated as the remaining path segment
Expand Down
4 changes: 2 additions & 2 deletions hack/validate-vendor.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ fi
VALIDATE_HEAD="$(git rev-parse --verify HEAD)"

IFS=$'\n'
files=( $(git diff "$TRAVIS_BRANCH...$VALIDATE_HEAD" --diff-filter=ACMR --name-only -- 'manifest.toml' 'lock.toml' 'vendor/' || true) )
files=( $(git diff "$TRAVIS_BRANCH...$VALIDATE_HEAD" --diff-filter=ACMR --name-only -- 'Gopkg.toml' 'Gopkg.lock' 'vendor/' || true) )
unset IFS

if [ ${#files[@]} -gt 0 ]; then
# We run ensure to and see if we have a diff afterwards
go build
./dep ensure
# Let see if the working directory is clean
diffs="$(git status --porcelain -- vendor manifest.toml lock.toml 2>/dev/null)"
diffs="$(git status --porcelain -- vendor Gopkg.toml Gopkg.lock 2>/dev/null)"
if [ "$diffs" ]; then
{
echo 'The result of ensure differs'
Expand Down
2 changes: 1 addition & 1 deletion lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/sdboyer/gps"
)

const LockName = "lock.toml"
const LockName = "Gopkg.lock"

type Lock struct {
Memo []byte
Expand Down
2 changes: 1 addition & 1 deletion manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/sdboyer/gps"
)

const ManifestName = "manifest.toml"
const ManifestName = "Gopkg.toml"

type Manifest struct {
Dependencies gps.ProjectConstraints
Expand Down
4 changes: 2 additions & 2 deletions test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ var (
)

const (
manifestName string = "manifest.toml"
lockName string = "lock.toml"
manifestName string = "Gopkg.toml"
lockName string = "Gopkg.lock"
)

func init() {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e31a186

Please sign in to comment.