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

Commit e405d48

Browse files
committed
All tests passing
1 parent b461c3f commit e405d48

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

cmd/dep/ensure.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,8 @@ func (cmd *ensureCommand) runAdd(ctx *dep.Ctx, args []string, p *dep.Project, sm
587587
return errors.Wrapf(err, "opening %s failed", dep.ManifestName)
588588
}
589589

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

639640
// try to split on '@'
640641
// When there is no `@`, use any version
641-
versionStr := "*"
642+
var versionStr string
642643
atIndex := strings.Index(arg, "@")
643644
if atIndex > 0 {
644645
parts := strings.SplitN(arg, "@", 2)

cmd/dep/testdata/harness_tests/ensure/add/exists-imports/final/Gopkg.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
[[constraint]]
2-
name = "github.com/sdboyer/deptesttres"
33
branch = "master"
4+
name = "github.com/sdboyer/deptesttres"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
[[constraint]]
23
name = "github.com/sdboyer/deptest"
34
version = "1.0.0"

0 commit comments

Comments
 (0)