Skip to content

allow build.rs to write files to the volume #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

gnzlbg
Copy link
Contributor

@gnzlbg gnzlbg commented May 2, 2018

Closes #145 .

@gnzlbg
Copy link
Contributor Author

gnzlbg commented May 2, 2018

@homunkulus try

@jamesmunns
Copy link
Contributor

jamesmunns commented May 2, 2018

Hey @gnzlbg, I know this had been discussed before, however at the time it was decided that it was better practice to do all building in the target/ directory, using the OUT_DIR environment variable exposed to build.rs scripts. You can see an example of this in one of my repos.

Since this does impose some problems for people that are porting existing makefiles, it might make sense to allow disabling this constraint, but I would prefer this be an explicit opt-in.

Would you consider adding a cli flag to toggle this change with a "loud" name, like --allow-container-to-modify-files (okay, thats maybe too long, but you get the idea hopefully), so that the current behavior is not changed by default?

Also for reference, only collaborators can trigger CI at the moment.

Also also, thanks for all the attention on this project lately!

@gnzlbg
Copy link
Contributor Author

gnzlbg commented May 2, 2018 via email

@gnzlbg gnzlbg closed this May 3, 2018
@gnzlbg
Copy link
Contributor Author

gnzlbg commented May 3, 2018

This is written in the readme, and I have no idea how to detect this easily, so I am closing it. I agree that it is better to never modify the project directory.

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.

2 participants