-
Notifications
You must be signed in to change notification settings - Fork 1k
Update Masterminds/semver to latest 2.x #573
Conversation
Change
|
Thanks for the help! I updated the second test and version specified, and that is now passing. I see what I did wrong with the first one. I will refactor that and see if I can get it working. |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
CLAs look good, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty close - just two things. so far it does appear that my fears of more complex problems were probably unfounded 😄
@@ -25,7 +25,7 @@ func TestReadManifest(t *testing.T) { | |||
t.Fatalf("Should have read Manifest correctly, but got err %q", err) | |||
} | |||
|
|||
c, _ := gps.NewSemverConstraint(">=0.12.0, <1.0.0") | |||
c, _ := gps.NewSemverConstraint("^0.12.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't absorbed the full context here yet, but just noting that these two aren't equivalent. By the definitions used in Masterminds/semver, ^0.12.0
is equivalent to >=0.12.0, <0.13.0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the repo's readme, I believe those are equal. The change may not be necessary if the testdata is not updated, I'll test this out locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're not 😄 Masterminds/semver#53
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(note that updating the README there is one of the last TODOs before releasing v2.0.0
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that makes sense now :p
Gopkg.lock
Outdated
@@ -28,7 +28,7 @@ memo = "932b7b1663f6eecccb1fada1d3670ae24cd8aa7c8b61e3b224edfefebe25954e" | |||
branch = "master" | |||
name = "github.com/pelletier/go-toml" | |||
packages = ["."] | |||
revision = "fe206efb84b2bc8e8cfafe6b4c1826622be969e3" | |||
revision = "685a1f1cb7a66b9cadbe8f1ac49d9f8f567d6a9d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's only update the semver dep in this PR, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Signed-off-by: Nick Russo <[email protected]>
Signed-off-by: Nick Russo <[email protected]>
Signed-off-by: Nick Russo <[email protected]>
Signed-off-by: Nick Russo <[email protected]>
Thanks for the contribution - I ended up merging the other PR related to this issue (#579), in part because the author there had claimed the issue. I realize that "issue claiming" isn't the most optimal way to do things, but we've got quite a lot of people interested in contributing, so I'm trying to respect it as a way of avoiding having people tripping over each other. I hope you don't find this too discouraging, and are still interested in finding other issues to work on! |
Not a problem at all, and I respect that. I had some free time on Friday and I wanted to get my hands dirty either way. I'll keep my eyes peeled for more issues 😄 |
awesome 🎉 i appreciate your understanding! hopefully i'll be able to find time to whip some more issues into contribution shape soon... |
Let me know if there's any way I can help with managing the project at all. I was thinking I could work on documentation to help get people on board with using dep |
It's a tough thing to split up in general, but right now I have the feeling that there's probably a number of open issues that we could reasonably go back and mark as help-wanted. Maybe we could take advantage of your being newish to dep: if you could go through the backlog of open issues and just look for issues (not already marked help-wanted) that, to your eyes, don't seem too crazy or daunting, but maybe just need some more info (or even seem approachable as-is). We could use that list to try to marshal up some more issues for contributors. If that sounds like something you'd be interested in, it's probably best to coordinate in slack 😄
YES! We really need this. Once we got the FAQ together we sorta dropped the documentation thing - #331 - but it's still quite important. Especially as we near this first bit of "stability." |
dep ensure -update
--- FAIL: TestVersionInWorkspace (1.36s)
context_test.go:169: expected "v0.8.0", got "v0.8.0"
--- FAIL: TestWriteManifest (0.00s)
manifest_test.go:94: Valid manifest did not marshal to TOML as expected:
(GOT): ignored = ["github.com/foo/bar"]
FAIL
exit status 1
FAIL github.com/golang/dep 10.427s
I believe this gets "[almost] the whole way there."
Going to look over this again later, but some guidance would be helpful.
Referencing #562