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

Fix panic when tmp path is inccurate #280

Merged
merged 2 commits into from
Feb 19, 2025
Merged

Conversation

s1gnate-sync
Copy link
Contributor

prior this fix if TMPDIR is set to something like /tmp// the iso9660 creation would cause panic.

now it's fixed + test case is added according to @Dietch review

…ch still valid) and add test-case for it

Signed-off-by: s1gnate-sync <[email protected]>
@s1gnate-sync
Copy link
Contributor Author

@deitch had intense sprint and didn't have energy to finish with test-case. Now it's done and I've checked first that test is failing and when added clean to the path and rerun test to ensure it's not failing anymore! All seems good.

There is tiny thing I forgot to add empty line between functions in finalize_test.go. Tell me if it's important for you and I will add it ;-)

deitch
deitch previously approved these changes Feb 17, 2025
@deitch
Copy link
Collaborator

deitch commented Feb 17, 2025

Lint doesn't like how you structured the test.

@s1gnate-sync
Copy link
Contributor Author

I've looked how it's handled in other tests and did the same, seems like this rule is useless. I've also added that empty string!

Copy link
Collaborator

@deitch deitch left a comment

Choose a reason for hiding this comment

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

Haha, just nolint? That is fine. I don't think this is a place where lint is helpful.

@deitch deitch merged commit 65b061b into diskfs:master Feb 19, 2025
20 checks passed
@s1gnate-sync
Copy link
Contributor Author

@deitch thanks!

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