You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the final deployer folder would be third_party/direct_deploy then the package folder.
It is better that removing the subdirectory direct_deploy, If users want to create that folder, they can use --deployer-folder third_party/direct_deploy instead.
Besides, I'd like that deployer folder can be set int the conf file.
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
aiyolo
changed the title
[feature] Allowing specify deployer folder
[feature] Allow specifying deployer folder
Apr 25, 2025
The direct_deploy generator hardcodes the "direct_deploy" folder in its implementation:
defdirect_deploy(graph, output_folder):
""" Deploys to output_folder a single package, """output_folder=os.path.join(output_folder, "direct_deploy")
conanfile=graph.root.conanfileconanfile.output.info(f"Conan built-in pkg deployer to {output_folder}")
That means that the Conan --deployer-folder argument cannot avoid this in anyway.
Also, this cannot be changed because it would be breaking behavior for users that rely on this functionality.
There are 2 alternatives to achieve something like this:
Do a mv command after the conan install with deployers
Or provide your own deployer. Note that the deployers are intended to be mostly modular and user provided. The built-in deployers are there for convenience, but they do not aim to be a general solution for production for all users. This is the reason the deployers can be provided by users, and shared and distributed easily with conan config install/install-pkg.
Adding a specific conf to implement something that is basically a mv command would be too overkill.
What is your suggestion?
Currently, when specifying deployer folder, for example, runing the folloing comman
the final deployer folder would be
third_party/direct_deploy
then the package folder.It is better that removing the subdirectory direct_deploy, If users want to create that folder, they can use
--deployer-folder third_party/direct_deploy
instead.Besides, I'd like that deployer folder can be set int the conf file.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: