Skip to content
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

IncludeMergedTags not working when publishing a canary version #1820

Closed
spoldman opened this issue Dec 10, 2018 · 6 comments
Closed

IncludeMergedTags not working when publishing a canary version #1820

spoldman opened this issue Dec 10, 2018 · 6 comments

Comments

@spoldman
Copy link

I'm trying to use includeMergedTags with a canary build and I noticed in the code that it is not passed on to the describeRef of the collectUpdates function inside detectCanaryVersions.

So my question is should it not be part of when calculating canary versions?

@spoldman
Copy link
Author

Just wanted to give a little bit more context

I'm trying to do CI builds of develop (canary) but all releases are tagged on master. If I have tagged 1.3 on master it is still buildin 1.2-alpha..... on develop.

@evocateur
Copy link
Member

I wouldn't recommend using a develop branch, it just makes things overly complicated.

As to why this isn't happening for canary releases, it looks like it was just an oversight.

@spoldman
Copy link
Author

spoldman commented Jan 8, 2019

I was testing the fix and found out that it was not completely working.

If you look at https://github.com/lerna/lerna/blob/master/commands/publish/index.js#L318
you can see that describeRef is only called with one parameter but expects 2. The second parameter should be includeMergeTags flag. This can also be found in line 333 in the same file.

@evocateur
Copy link
Member

Yep, you're right. This is what happens when I don't get enough sleep. 😢

@evocateur evocateur reopened this Jan 8, 2019
@evocateur
Copy link
Member

@lock
Copy link

lock bot commented Apr 8, 2019

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants