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

Commit 5c63f8b

Browse files
authored
Merge pull request #752 from carolynvs/fix-buid
Fix build on master
2 parents 75cb241 + 3d286c9 commit 5c63f8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/feedback/feedback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func NewLockedProjectFeedback(lp gps.LockedProject, depType string) *ConstraintF
5858
switch vt := lp.Version().(type) {
5959
case gps.PairedVersion:
6060
cf.LockedVersion = vt.String()
61-
cf.Revision = vt.Underlying().String()
61+
cf.Revision = vt.Revision().String()
6262
case gps.UnpairedVersion: // Logically this should never occur, but handle for completeness sake
6363
cf.LockedVersion = vt.String()
6464
case gps.Revision:

internal/feedback/feedback_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ func TestFeedback_Constraint(t *testing.T) {
5252
}
5353

5454
func TestFeedback_LockedProject(t *testing.T) {
55-
v := gps.NewVersion("v1.1.4").Is("bc29b4f")
56-
b := gps.NewBranch("master").Is("436f39d")
55+
v := gps.NewVersion("v1.1.4").Pair("bc29b4f")
56+
b := gps.NewBranch("master").Pair("436f39d")
5757
pi := gps.ProjectIdentifier{ProjectRoot: gps.ProjectRoot("github.com/foo/bar")}
5858

5959
cases := []struct {

0 commit comments

Comments
 (0)