Skip to content
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

Don't use tempdir #60

Merged
merged 1 commit into from
May 13, 2018
Merged

Don't use tempdir #60

merged 1 commit into from
May 13, 2018

Conversation

bpineau
Copy link
Owner

@bpineau bpineau commented May 13, 2018

We shouldn't let Afero decide the temporary dir for us, since
this could end up on a different filesystem than the repository,
and rename() don't work cross filesystems.

We don't want to alter .gitignore (which can be edited/managed by
someone else or elsewhere), but we can use the local-only
.git/info/exclude exclusion file (https://git-scm.com/docs/gitignore).

Which allows us to create our temporary files in the repository
itself, and keep everything else (even /tmp) read-only.

@coveralls
Copy link

coveralls commented May 13, 2018

Coverage Status

Coverage decreased (-0.7%) to 89.85% when pulling 2262db3 on no_tempdir into 41cd799 on master.

We shouldn't let Afero decide the temporary dir for us, since
this could end up on a different filesystem than the repository,
and rename() don't work cross filesystems.

We don't want to alter .gitignore (which can be edited/managed by
someone else or elsewhere), but we can use the local-only
.git/info/exclude exclusion file (https://git-scm.com/docs/gitignore).

Which allows us to create our temporary files in the repository
itself, and keep everything else (even /tmp) read-only.
@bpineau bpineau merged commit b85b4c9 into master May 13, 2018
@bpineau bpineau deleted the no_tempdir branch May 13, 2018 12:39
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