Skip to content

Ensure env file exists#2589

Merged
kinnison merged 3 commits intorust-lang:masterfrom
kinnison:ensure-env-file
Nov 30, 2020
Merged

Ensure env file exists#2589
kinnison merged 3 commits intorust-lang:masterfrom
kinnison:ensure-env-file

Conversation

@kinnison
Copy link
Copy Markdown
Contributor

This should fix #2578

@kinnison kinnison added this to the 1.23.1 milestone Nov 30, 2020
@kinnison
Copy link
Copy Markdown
Contributor Author

@workingjubilee opinions?

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
@kinnison
Copy link
Copy Markdown
Contributor Author

This appears to be sane to me, and I need to re-prepare 1.23.1 so I'm merging it.

@kinnison kinnison merged commit f329c9c into rust-lang:master Nov 30, 2020
@kinnison kinnison deleted the ensure-env-file branch November 30, 2020 20:25
Comment on lines +147 to +151
// Nothing to do for Windows for now
pub fn do_write_env_files() -> Result<()> {
Ok(())
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a literally useless function i.e. it does nothing except further enmesh the two OS' APIs.

I submitted 3 PRs with the express intention in each one of reducing the frequency of these in the codebase so that Linux and Windows devs would not have to consult enmeshed OS APIs, and I was hardly given even 24 hours to review this, whereas at least one of my PRs was held up for weeks in review for not being pretty enough or not using APIs that had no explanation for their usage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a fair assessment. It does increase coupling in an API you worked very hard to decouple. I can only apologise for the timing and the presentation of this change, I was working under (perhaps imagined) pressure to get a fix out for users because 1.23.0 broke a behaviour people were reasonably relying on and it had broken a number of CIs (not just this, but also the macos 10.13 problem).

I will work on a PR to decouple this again, I apologise for rushing through something less than ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustup is not creating $HOME/.cargo/env

2 participants