-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bump version command that creates a git tag and a bower.json file (issue #203) #289
Conversation
…or the full range of semver syntax.
It looks like there are quite a few conflicts with #272 -- once that is merged I will resolve them. |
@Dretch this looks quite good already, while I think #272 will need some more work, so I'd say we could try to merge this first and then rebase that one? (cc @jonathanlking) What's missing from here to be feature complete? |
Right now I thinking of:
|
@Dretch thanks for the summary. Some suggestions:
For doing this let's add an
As time goes I'm less sure the
Right, great point. Fortunately we have some facilities for this already 🎉 |
Thanks for the feedback @f-f
I will look at doing this.
Okay, great.
Okay, I'll look at
Do you have any preference? EDIT: Also, it looks like it will be necessary to call |
…o or a hash/branch version.
… generated bower.json.
This is needed so that `pulp publish` will be able to read resolved dependency versions from the `bower_components` folder.
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.
🤷♂
@Dretch yeah, I also have no idea what's going on. The closest thing I found is this issue, that mentions that |
"Publish commands" comes before "Psc-Package compatibility commands" because it will probably be used more often.
Instead, ask the user to commit it and then re-run the command.
…n the BumpVersionSpec setup function, rather than versioning a whole test project.
…, in order to actually do anything.
9441eeb
to
d4cd25f
Compare
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.
@Dretch looks great, thanks for doing this! 👏🎉
Ping @hdgarrood for a quick review, but I'd say we should merge already (so we can rebase #301, #272 and #283 on this) and address feedback in subsequent PRs
This looks reasonable to me, but if I am reading correctly I think this is currently assuming that a package called |
(Not that this should prevent this from being merged, just something that's probably worth being aware of.) |
@hdgarrood yeah that's right. I think this assumption is reasonable as we use it around already (e.g. when suggesting deps names), though your comment made me realise that with this implementation you'd be allowed to publish a package that only depends on packages in the official set because we search for every dependency's tag in the "packages metadata", which is a big map containing all tags and commits for all packages in the official package set So maybe we should just generate the bower file and try to install and see if bower complains? (cc @Dretch) |
Oh yes of course, this PR does this already -- it's necessary for |
@hdgarrood yeah, what I meant there is that we should remove the check here otherwise one wouldn't be able to publish anything that doesn't depend from the packages in the package set. |
Description of the change
Implements #203. Not yet feature complete.
Checklist:
README