native
native copied to clipboard
[hooks_runner] Extend allowed environment list
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