Skip to content

Isolated environment is hard-coded for building bosh-releases #660

@joergdw

Description

@joergdw

The bosh-cli sometimes compiles releases, e.g. for bosh create-env. It therefore requires compilation tools that may need certain environment-variables, e.g. to find dynamically linked libraries and header-files.

installation/pkg/compiler.go:95-108 prohibits the propagation of needed environment-variables that are intended to solve this. One examle is LIBRARY_PATH which is like the (already propagated) LD_LIBRARY_PATH but relevant for compilation-time instead of run-time. But there are quiet some more.

For me it would be sufficient, to switch off the UseIsolatedEnv e.g. via a cli-flag. Then the caller is responsible for providing a correct and clean environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions