Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

dep info envs #84

Merged
merged 4 commits into from
Jul 11, 2021
Merged

dep info envs #84

merged 4 commits into from
Jul 11, 2021

Conversation

drahnr
Copy link
Contributor

@drahnr drahnr commented Jul 6, 2021

Parses the # env-dep: info provided by rustc to be less yolo about which env variables to include for remote compilation.

Ref #83

@drahnr drahnr force-pushed the bernhard-dep-info-envs branch 5 times, most recently from 4a66002 to 3fc2ade Compare July 6, 2021 08:50
@drahnr drahnr force-pushed the bernhard-dep-info-envs branch 3 times, most recently from e788ab0 to 2798c3b Compare July 6, 2021 09:08
@drahnr
Copy link
Contributor Author

drahnr commented Jul 7, 2021

@Xanewok getting random CI failures, unrelated to the changeset, could you do a quick review? Escaping is something left as a TODO but I think that is fine for now. I'd like to address that after doing the re-branding.

@drahnr drahnr self-assigned this Jul 7, 2021
@drahnr drahnr mentioned this pull request Jul 8, 2021
@drahnr drahnr requested a review from Xanewok July 9, 2021 07:10
@Xanewok Xanewok added this to the cachepot deployment milestone Jul 11, 2021
Copy link
Contributor

@Xanewok Xanewok left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

// collect the env variables referenced via `env!` or required by `build.rs`.
const ENV_DEP_PREFIX: &str = "# env-dep:";
let mut dep_envs = lines
.filter(|line| line.starts_with(ENV_DEP_PREFIX) && line.len() > ENV_DEP_PREFIX.len())
Copy link
Contributor

Choose a reason for hiding this comment

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

It'd be good to use strip_prefix API but since that's introduced in 1.45 it'd be great to leave a note stating that we should upgrade to that once we bump MSRV

@Xanewok Xanewok mentioned this pull request Jul 11, 2021
@Xanewok Xanewok force-pushed the bernhard-dep-info-envs branch from 2798c3b to f199fa6 Compare July 11, 2021 13:31
@Xanewok Xanewok merged commit 49ab6cb into master Jul 11, 2021
@Xanewok Xanewok deleted the bernhard-dep-info-envs branch July 11, 2021 17:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants