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

hello_schema: replace TempFile with TempDir #707

Merged
merged 1 commit into from
Apr 17, 2018

Conversation

mguentner
Copy link
Contributor

If TempFile is used cayley.NewGraph complains about
tmpfile.Name() not being a dir.

checkErr(err)

defer os.Remove(tmpfile.Name()) // clean up
defer os.Remove(tmpdir) // clean up
Copy link
Member

Choose a reason for hiding this comment

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

Should probably be RemoveAll

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@dennwc dennwc added the bug label Apr 17, 2018
@dennwc dennwc added this to the v0.7.3 milestone Apr 17, 2018
If TempFile is used cayley.NewGraph complains about
tmpfile.Name() not being a dir.
Copy link
Member

@dennwc dennwc left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix!

@dennwc dennwc merged commit ec694ec into cayleygraph:master Apr 17, 2018
@mguentner
Copy link
Contributor Author

For the record, hello_bolt appears to require the same fix

@mguentner mguentner deleted the fix_hello_schema_example branch April 17, 2018 13:49
@dennwc
Copy link
Member

dennwc commented Apr 17, 2018

Seems so. It would be great if you could send the change for it as well :)

@mguentner
Copy link
Contributor Author

#708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants