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

Commit

Permalink
All tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Jul 31, 2017
1 parent b461c3f commit e405d48
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions cmd/dep/ensure.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ func (cmd *ensureCommand) runAdd(ctx *dep.Ctx, args []string, p *dep.Project, sm
return errors.Wrapf(err, "opening %s failed", dep.ManifestName)
}

_, err = f.Write(append([]byte("\n"), extra...))
//_, err = f.Write(append([]byte("\n"), extra...))
_, err = f.Write(extra)
if err != nil {
return errors.Wrapf(err, "writing to %s failed", dep.ManifestName)
}
Expand Down Expand Up @@ -638,7 +639,7 @@ func getProjectConstraint(arg string, sm gps.SourceManager) (gps.ProjectConstrai

// try to split on '@'
// When there is no `@`, use any version
versionStr := "*"
var versionStr string
atIndex := strings.Index(arg, "@")
if atIndex > 0 {
parts := strings.SplitN(arg, "@", 2)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

[[constraint]]
name = "github.com/sdboyer/deptesttres"
branch = "master"
name = "github.com/sdboyer/deptesttres"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

[[constraint]]
name = "github.com/sdboyer/deptest"
version = "1.0.0"

0 comments on commit e405d48

Please sign in to comment.