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: conan-io/docs#4286

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

Partially solves #5719, missing bat

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

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Looking good, just agree on the name of the conf, and think about verbosity.

@memsharded memsharded merged commit 6e4f724 into conan-io:develop2 Oct 23, 2025
16 checks passed
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