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

Avoid using temp file during write #115

Merged
merged 1 commit into from
Aug 13, 2017

Conversation

ethantkoenig
Copy link
Contributor

Some slight refactoring to avoid writing/renaming a temp file when writing a ini file. Using a temp file is problematic if the file you are writing to is mounted inside a Docker container (see go-gitea/gitea#2197).

@ethantkoenig
Copy link
Contributor Author

ethantkoenig commented Aug 4, 2017

CI build passed for all Go versions 1.5+, failed for Go 1.4 with the following:

../../smartystreets/logging/logging.go:61: this.Logger.SetOutput undefined (type *log.Logger has no field or method SetOutput)
../../smartystreets/logging/logging.go:68: undefined: log.Output

This seems to suggest that the smartystreets testing framework no longer supports Go 1.4?

@unknwon
Copy link
Member

unknwon commented Aug 13, 2017

Thanks your PR!

I think the problem is Go 1.4, I saw goconvey supports from 1.2.x. Just a small change on CI config file, I'll do that after merge this PR.

@unknwon unknwon merged commit 8a83917 into go-ini:master Aug 13, 2017
@unknwon
Copy link
Member

unknwon commented Aug 13, 2017

Hmm... CI is still failing. Anyway I'll remove Go 1.4 from CI file.

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