Closed starbelly closed 3 years ago
This is open for review now. The actual set of changes is small if you don't include deletion of stubs. One thing this PR lacks is testing for umbrellas, but we didn't have this already. We do need this, but it might require re-working some of the integration test helpers a good bit, and I didn't want this PR to grow anymore.
More refactoring and splitting out pure functions into other modules should be a part of that, this should happen in a subsequent PR. More tests need to be added as well of course, but that should also be done as another PR IMO.
I'd like to get this one through and then focus on the rest of the breaking changes in other tasks (and the refactoring of those modules) at this point.
Added ?RAISE_ERROR macro, raises a ?PROVIDER_ERROR
I think you mean ?RAISE
.
Refactored publish/* into publish_package/3 and publish_docs/3
I think you mean /4
on both instances.
Added create_tarball/2
I think you mean /1
.
(not trying to nitpick, just want to make sure the changelog is proper, if you ever have one)
Did none of this imply changes to the README? Or will this come at a later date?
Added ?RAISE_ERROR macro, raises a ?PROVIDER_ERROR
I think you mean
?RAISE
.
Correct, will amend.
Refactored publish/* into publish_package/3 and publish_docs/3
I think you mean
/4
on both instances.
Correct, will amend.
Added create_tarball/2
I think you mean
/1
.
Correct, will amend.
(not trying to nitpick, just want to make sure the changelog is proper, if you ever have one)
No worries, and yes, I have been thinking we need to start keeping a changelog. There's at least two ways to do that. Systematically (requires everyone to do commits in the same format) or we just cobble it together and prepend on each release, but yeah fully agree none the less.
Did none of this imply changes to the README? Or will this come at a later date?
Later. There's still a good number of PRs that need to happen first, but it shall be updated. We'll also have to update the docs. That brings up another issue, which I will make an issue for.
No worries, and yes, I have been thinking we need to start keeping a changelog. There's at least two ways to do that. Systematically (requires everyone to do commits in the same format) or we just cobble it together and prepend on each release, but yeah fully agree none the less.
I've seen a bunch of ways this is done, in the past, in other projects.
I prefer 3. If the PR titles are proper (I wouldn't go as deep as commits, since mostly we're going to squash them to 1 per pull request - right?), it should be fairly easy to generate one. And it doesn't even need a lot of discipline (unless the releaser wants to have as little trouble as possible), since you can always generate it, tweak the titles - if not readable -, then generate again. (to be discussed in another forum, perhaps)
@tsloughter ping for review
This commit is mostly a refactor of rebar3_hex_publish. The following rationale is provided for the refactoring:
Refactor rationale
Changes
TODO: