Skip to content

Overwrite slice flag defaults when set - #350

Closed
meatballhat wants to merge 10 commits into
masterfrom
string-slice-flag-default-160
Closed

meatballhat wants to merge 10 commits into
masterfrom
string-slice-flag-default-160

Conversation

@meatballhat

@meatballhat meatballhat commented Apr 5, 2016 •

Copy link
Copy Markdown
Member

Closes #160
Closes #319
Closes #314
Closes #307

NOTE: this includes an API change:

old way, no longer valid:

s := &StringSlice{"foo", "bar"}
i := &IntSlice{1, 2}

new way:

s := NewStringSlice("foo", "bar")
i := NewIntSlice(1, 2)

@meatballhat meatballhat self-assigned this Apr 5, 2016
@codegangsta codegangsta added the status/claimed someone has claimed this issue label Apr 5, 2016
@jszwedko

Copy link
Copy Markdown
Contributor

👍 💯

I thought about this a bit more and it does feel like it would be disruptive to backwards compatibility (since the only people who would have been bitten by this must already be specifying a value), but I can't think of another way to address this bug, so I would like to:

  • Tag the current master
  • Create a CHANGELOG

before merging this just to ease the pain a little.

@meatballhat

Copy link
Copy Markdown
Member Author

@jszwedko SGTM! I'm happy to do the tagging and CHANGELOG bits.

@meatballhat

Copy link
Copy Markdown
Member Author

Tagging is done. See #360 for CHANGELOG 😺 🤘.

@meatballhat meatballhat added this to the 2.0 milestone Apr 25, 2016
@meatballhat meatballhat added the kind/bug describes or fixes a bug label Apr 30, 2016
@meatballhat meatballhat assigned jszwedko and unassigned meatballhat May 3, 2016
Comment thread cli-migrate-slice-types
@@ -0,0 +1,75 @@
#!/usr/bin/env python

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 this is above, beyond, and awesome.

@meatballhat meatballhat assigned jszwedko and unassigned meatballhat May 3, 2016
@jszwedko

jszwedko commented May 5, 2016

Copy link
Copy Markdown
Contributor

@meatballhat what do you think about targeting a 2.0 branch with this so that we can continue to iterate against master while we prepare the 2.0 release? Alternatively, we could have a 1.x branch that we backport to until 2.0 is officially released.

@meatballhat

Copy link
Copy Markdown
Member Author

I'm a fan of a v2 branch, assuming the majority of humans who use cli are not using version pinning.

@meatballhat

Copy link
Copy Markdown
Member Author

Superseded by #392

@meatballhat meatballhat closed this May 5, 2016
@codegangsta codegangsta removed the status/claimed someone has claimed this issue label May 5, 2016
@meatballhat
meatballhat deleted the string-slice-flag-default-160 branch May 5, 2016 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug describes or fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants