Skip to content

Conversation

AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Oct 15, 2025

Changelog: Feature: Add opt-in conf to control making .sh and .ps1 env deactivate functionality into in-memory functions instead of files
Docs: TODO

This time I paired with @perseoGI to try this approach.

The main lacking feature here is .bat files. Those are not made into a function because no such functionality exists there.

It's expected that a follow-up PR will have this same conf control .bat files being sent into a temp file which is then added to the path to be able to deactivate from everywhere, without cluttering the cwd

The initial push comes from this PR #12914

AbrilRBS and others added 3 commits October 15, 2025 15:13
@perseoGI perseoGI marked this pull request as ready for review October 15, 2025 14:05
@AbrilRBS AbrilRBS marked this pull request as draft October 15, 2025 14:24
@AbrilRBS AbrilRBS changed the title Second attemp for virtual deactivate functions Make .sh and .ps1 env deactivate functionality into in-memory functions Oct 16, 2025
@AbrilRBS AbrilRBS changed the title Make .sh and .ps1 env deactivate functionality into in-memory functions Add conf to control making .sh and .ps1 env deactivate functionality into in-memory functions instead of files Oct 16, 2025
@AbrilRBS AbrilRBS marked this pull request as ready for review October 20, 2025 11:44
@AbrilRBS AbrilRBS added this to the 2.22.0 milestone Oct 20, 2025
@AbrilRBS
Copy link
Member Author

Added to 2.22, but this can very well be delayed into 2.23

"tools.apple:enable_visibility": "(boolean) Enable/Disable Visibility Apple Clang flags",
"tools.env.virtualenv:powershell": "If specified, it generates PowerShell launchers (.ps1). Use this configuration setting the PowerShell executable you want to use (e.g., 'powershell.exe' or 'pwsh'). Setting it to True or False is deprecated as of Conan 2.11.0.",
"tools.env:dotenv": "(Experimental) Generate dotenv environment files",
"tools.env:deactivate_function": "(Experimental) Generate a deactivate function instead of a script to unset the environment variables",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a forward looking conf name so that we can use this for future improvements over the deactivate, not just making it a function

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

Successfully merging this pull request may close these issues.

3 participants