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

Have komodo cli remove hidden release dir after rsync #509

Conversation

jonathan-eq
Copy link
Collaborator

Resolves #326

@jonathan-eq jonathan-eq force-pushed the remove-hidden-folder-in-build-script branch 3 times, most recently from fe6e61c to 1c3dba1 Compare August 30, 2024 09:32
@@ -248,6 +247,7 @@ def delete_old_previously_moved_releases(prefix_path: Path, release_name: Path)
"rm -rf -- " + " ".join(release_dir_glob),
allow_failure=True,
)
shell(f"rm -rf .{release_name}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Unsure if this is necessary. In actual use we build in a tmpdir that gets deleted once the build has finished.
And I am not sure if this is the correct path to delete from? Apart from in the tests, I do not think that anyone actually build komodo locally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a test for making sure it is the correct path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, should we depend on the input directory being tmp/***, or should komodo cleanup after itself regardless?

@jonathan-eq jonathan-eq force-pushed the remove-hidden-folder-in-build-script branch from 1c3dba1 to e28966e Compare August 30, 2024 10:08
@jonathan-eq jonathan-eq closed this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hidden copy of release directory is never removed
2 participants