Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
proposal for deploy() feature #15172
proposal for deploy() feature #15172
Changes from all commits
04a3fa1
f561cd3
aca6ae7
1bb3955
91dac4a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Yep, I think that this is a great interface. You're right, we might want to deploy multiple packages at once. I'm wondering about overloading the
--deployer-folder
though - is the design intention here that each deployer is responsible for namespacing itself within thedeployer-folder
? For instance, if I runthen each of the deployers (kind of) conflict:
full_deploy
namespaces itself properly, licenses.py (from the conan-extensions repo) places licenses.zip in the root of the deployer folder, and in this case I've emulated yourdeploy()
method, which copies the package folder to the root. If this is the most desirable design, then a best practice would need to emerge to avoid contaminating other deployments (i.e., by outputing to a subfolder ofdeploy-folder
). Or is there another design that might remove the need for a best practice?I guess removing the need for a best practice also has issues - this is the most flexible, and gives the user the most room to construct things the way they want, at the cost of a (potential) maintenance overhead in ensuring deployers deploy consistently if there's a possibility of a clash.
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.
Yes, I think it should be the responsibility of the users to namespace their deploys if that is what they want/need. If we try to namespace something, then it would be certainly blocking for users that want to deploy all .dlls in a single common folder to all dependencies for example, and they want to do it in their
deploy()
method.Once deployers are running from different origins and different packages
deploy()
now, the space for conflict is always there (they could be deploying directly to/usr/bin
etc, and conflicting anyway). Thefull_deploy
implement the namespace in itself, it is not something external, with the intention that users can take it as inspiration and easily customize the namespace/layout of the deployment to fit their needs.The rule of thumb is that deployers copy to user space, and as such it is the full responsibiliy of the user (via the different deployers implementations) to control that user space. And then, yes, some common practices might happen with some common namespaces patterns, but that should be it, just some common practices, not something mandated or implemented by the tool.