Skip to content

cargo build should track environment variables #209

@ju1ius

Description

@ju1ius

Hi,

Currently when we want to switch the PHP version for a build, we have to run

cargo clean
PATH="/path/to/build:${PATH}" cargo build

Which wipes out the entire compilation cache.

The build script should use cargo:rerun-if-env-changed=PATH so that we can just do:

PATH="/path/to/build:${PATH}" cargo build

and cargo rebuilds only what's needed, not the entire dependency tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions