Skip to content

maint: release 2.X #826

Closed
Closed

Description

@coilysiren

If anyone is interested in the work of merging the master branch into v2, add let us know here with a "🤚I'm interested in working on this" comment!


The comments below describe a random assortment of release 2.X concerns 📝

Activity

  1. coilysiren commented on Aug 3, 2019

    @coilysiren
    MemberAuthor

    I'm thinking that I'll keep the current 2.0 branch as release 2.0 forever, and the very next release I make will be 2.1.

  2. coilysiren commented on Aug 3, 2019

    @coilysiren
    MemberAuthor

    I'm also going to try to merge 2.0 into master ASAP. I may keep maintaining a 1.0 branch with bugfixes? If people are interested in that.

  3. AudriusButkevicius commented on Aug 3, 2019

    @AudriusButkevicius
    Contributor

    Isn't that a breaking change in terms of API? I am not sure its cool everyone that don't do vendoring. Also, current api and implementation is battle tested, v2 is not.

  4. coilysiren commented on Aug 3, 2019

    @coilysiren
    MemberAuthor

    Isn't that a breaking change in terms of API? I am not sure its cool everyone that don't do vendoring.

    My understanding of the go community is that the vast majority of people install from a tag, eg. 1.2.4 - and don't install from the default branch, eg master. So there's no API compatibility guarantee around the master branch.

    That said, I just checked the yaml package and apparently they changed their default branch to be v2 https://github.com/go-yaml/yaml. So that may be the way to go here.

    Also, current api and implementation is battle tested, v2 is not.

    That's true! Are you suggesting we have a beta release period, or similar?

  5. coilysiren commented on Aug 3, 2019

    @coilysiren
    MemberAuthor

    Got a comment via Stephen Houston in the gophers general channel on slack

    Traditionally I would say you keep master based off your current stable with bugfixes added in to prepare for point releases ... I.e. if your current stable is 1.0 ... master is on 1.0 but with bugfixes added in to be able to tag 1.1 etc... you have a develop branch that is for features/future releases... when you get ready to do a new major release, i.e. v1 -> v2... master becomes develop and you tag... and then master follows 2.0 and gets bugfixes for 2.0 in order to do point releases 2.1 etc... and develop moves on to new features/future releases.

  6. coilysiren commented on Aug 3, 2019

    @coilysiren
    MemberAuthor

    to echo @tsingson's comment here

    this gopkg.in/urfave/cli.v2 is working fine for me in product about half year.

    #824 (comment)

  7. coilysiren commented on Aug 6, 2019

    @coilysiren
    MemberAuthor

    There's some really good discussion in this thread about go packaging and release a V2 #840 (comment)

  8. AudriusButkevicius commented on Aug 6, 2019

    @AudriusButkevicius
    Contributor

    I am not sure what the plan is here.
    I am not a fan of the current "there are two different incarnations of the library in a single repo" stuff.

    Ideally we'd have only one library that is the right library for everyone, and that would be on master.

  9. marwan-at-work commented on Aug 6, 2019

    @marwan-at-work
    Contributor

    Right, eventually (and hopefully sooner rather than later) the v2 branch should be merged into master branch.

    But note that Go Modules completely doesn't care about either branches when you have git tags that are proper semver (which we do)

    So my suggestion is the following:

    you add a go.mod to the master branch with the following header module github.com/urfave/cli and then creating a new git tag: v1.22.0

    and this way anyone issuing a go get github.com/urfave/cli will get the latest version (v1.22.0).

    If someone wanted to get a version not yet tagged, they can still do go get github.com/urfave/cli@master and that should still work.

    Now, once we merge v2 into master, anyone trying to do go get github.com/urfave/cli@master should fail since v2 is the default master branch and v2 is by definition a breaking change. I think that's totally okay, because anyone still wanting to get the regular v1 even after we merge v2 into master, can still do go get github.com/urfave/cli@latest or go get github.com/urfave/cli or even go get github.com/urfave/[email protected] (x being whatever number they wish)

    Furthermore, once we have v2 merged into master, we need to tag a new release, probably v2.0.0. But we MUST change the go.mod file BEFORE we tag the new release to be module github.com/urfave/cli/v2 so that we maintain semantic import versioning.

    And finally, everything should work. The master is the latest v2 version (which is what you suggested above), people can remain to use v1 as they wish (because Go Modules uses regular semver tags, and doesn't care about what's in the master branch). and people can also use v2 through the import path itself since it will have a v2 suffix.

    The only thing missing in this process is patch branches, which we can create on the fly (if we know the exact commit before a major bump in master), or we can create stale version branches.

  10. coilysiren commented on Aug 6, 2019

    @coilysiren
    MemberAuthor

    I am not a fan of the current "there are two different incarnations of the library in a single repo" stuff.

    I agree 👍

  11. AudriusButkevicius commented on Aug 6, 2019

    @AudriusButkevicius
    Contributor

    Now, once we merge v2 into master, anyone trying to do go get github.com/urfave/cli@master should fail since v2 is the default master branch

    Presumably this requires go.mod to be updated with a /v2 suffix?
    I guess go get github.com/urfave/cli with go version prior to module support would fetch v2 by default?

  12. marwan-at-work commented on Aug 6, 2019

    @marwan-at-work
    Contributor

    @AudriusButkevicius

    Presumably this requires go.mod to be updated with a /v2 suffix?

    Yes, and also because I imagine the v2 has a different API than v1. Otherwise it wouldn't be v2, it would just be v1.x.x.

    I guess go get github.com/urfave/cli with go version prior to module support would fetch v2 by default?

    Yes, but since urfave/cli does not have sub-packages that it imports, it should continue to work. Though I'd be a fan of telling users to use modules if they want to use v2 since it'll be the default convention in 1.14 and onwards.

  13. AudriusButkevicius commented on Aug 6, 2019

    @AudriusButkevicius
    Contributor

    Seems like we're ok to merge v2 into master then.
    I guess we need to compare feature parity and make sure we are happy with the API before we do that.

  14. coilysiren commented on Aug 6, 2019

    @coilysiren
    MemberAuthor

    In case it's not clear - we will make explicitly sure that V2 has all the same features that V1 has currently 🙂

  15. 24 remaining items

  16. coilysiren commented on Nov 9, 2019

    @coilysiren
    MemberAuthor

    I'm available at around 5 hours a day over the next ~9 days to do any fast follow IC work on potential v2 bugs, if we find any 👀 I'm going to try migrating one of my CLIs, see what I find.

  17. coilysiren commented on Nov 9, 2019

    @coilysiren
    MemberAuthor

    @marwan-at-work v2 is now in master! I know you've been waiting for that for a while 🙏

  18. marwan-at-work commented on Nov 9, 2019

    @marwan-at-work
    Contributor

    @lynncyrin that's awesome, great work 💯💯💯 👏

  19. coilysiren commented on Nov 16, 2019

    @coilysiren
    MemberAuthor

    I'm going to release the current master version as 2.0.0 today ✅

  20. asahasrabuddhe commented on Nov 16, 2019

    @asahasrabuddhe
    Member

    So excited for this to happen!

  21. coilysiren commented on Nov 21, 2019

    @coilysiren
    MemberAuthor

    Here's the ✨Official Git Tag ✨for v2 => https://github.com/urfave/cli/tree/v2.0.0

    It's now available via go get ... @v2.0.0

  22. self-assigned this
    on Nov 27, 2019
  23. pinned this issue on Nov 27, 2019
  24. added
    status/claimed
    on Nov 27, 2019
  25. changed the title [-]Release 2.X[/-] [+]maint: release 2.X[/+] on Dec 24, 2019
  26. coilysiren commented on Jan 18, 2020

    @coilysiren
    MemberAuthor

    2.0 is looking pretty stable now, so I'ma close this ♻️

  27. unpinned this issue on Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/maintenancestatus/claimed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions