native icon indicating copy to clipboard operation
native copied to clipboard

[hooks_runner] Extend allowed environment list

Open DenisDvlp opened this issue 6 months ago • 0 comments

Conan is a known package manager. It is worth to add all the variables started from CONAN_ to hooks allowed environment list.

GOPATH is an environment variable that defines the root of the Go workspace. It specifies where the Go projects, downloaded external dependencies, and compiled binaries are stored.

Suggestion in pkgs/hooks_runner/lib/src/build_runner/build_runner.dart:

    const variablePrefixesFilter = {
      ...
      'CONAN_' // Needed for Conan Package Manager
    };
    const toolsVariables = {
      'GOPATH' // Needed for installed Go apps
    };

Ref: https://github.com/dart-lang/native/issues/3381#issuecomment-4555285234

DenisDvlp avatar May 27 '26 19:05 DenisDvlp