Skip to content

fix: replacement of existing NIF files - #109

Merged
philss merged 1 commit into
philss:mainfrom
leandrocp:fix-remove-existing-nif
Sep 28, 2026
Merged

philss merged 1 commit into
philss:mainfrom
leandrocp:fix-remove-existing-nif

Conversation

@leandrocp

Copy link
Copy Markdown
Contributor

Commit 051306b changed metadata.file_name to include the .tar.gz extension so File.rm/1 targeted the wrong path and its error was ignored.

The fix is to strip .tar.gz from the file name to remove the actual lib file before extracting cached or downloaded artifacts.
This prevents crashes when replacing a NIF that is already loaded.

Commit 051306b changed metadata.file_name to include .tar.gz,
so File.rm/1 targeted the wrong path and its error was ignored.

Strip .tar.gz from the removal path and remove the existing library
before extracting cached or downloaded artifacts.
This prevents crashes when replacing a NIF that is already loaded.
@philss

philss commented Sep 28, 2026

Copy link
Copy Markdown
Owner

@leandrocp Excellent! Thank you!

@philss
philss merged commit 70539ea into philss:main Sep 28, 2026
2 checks passed
@leandrocp
leandrocp deleted the fix-remove-existing-nif branch September 28, 2026 21:07
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