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

[Question] why upload_only_when_tag forces stable branch? #566

Open
db4 opened this issue May 25, 2021 · 0 comments
Open

[Question] why upload_only_when_tag forces stable branch? #566

db4 opened this issue May 25, 2021 · 0 comments

Comments

@db4
Copy link

db4 commented May 25, 2021

Environment Details

  • Conan Package Tools Version: 0.35.1
  • Conan version: conan 1.36.0
  • Python version: python 3.8.10

Description of Problem, Request, or Question

I have a project with recipe and sources in the same repo. So I would like to upload conan packages for specific commits only. The only way to achieve that with conan package tools that I know is upload_only_when_stable/upload_only_when_tag. The former is not quite suitable as I need to upload testing channel packages as well. So I'm trying to go with upload_only_when_tag. But it surprisingly forces stable channel when used:

if self.ci_manager.is_tag() and upload_when_tag:
self.printer.print_message("Info",
"Redefined channel by branch tag, "
"setting CONAN_CHANNEL to '%s'" % stable_channel)

Why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant