Skip to content

Conversation

@paulo-ferraz-oliveira
Copy link
Contributor

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Nov 9, 2023

Description

We attempt (to start - open to discussion) to clean otp_builds and otp_installations every time kerl is run.

Closes #216.
Closes #236.

kerl Outdated
fix_otp_installations() {
if [ -f "$KERL_BASE_DIR"/otp_installations ]; then
inexisting_names=""

Choose a reason for hiding this comment

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

Gonna point out that "inexisting" isn't a word (well, actually it is, but it's obsolete and doesn't mean what you think it means). You want "nonexistant" or possibly just "missing".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool. Naming, right? (I guess I "translated" directly from portuguese "inexistente") Thanks. I'll change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kerl Outdated
fix_otp_installations() {
if [ -f "$KERL_BASE_DIR"/otp_installations ]; then
nonexisting_names=""
Copy link
Collaborator

Choose a reason for hiding this comment

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

i would use "missing" - that's the more natural word for this situation 🤷‍♀️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool. Naming, right? I'll change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@paulo-ferraz-oliveira
Copy link
Contributor Author

paulo-ferraz-oliveira commented Nov 11, 2023

Rebasing current changes onto the main branch as there's recently been quite a few changes (i.e. I wanna check CI is still Ok atm).

@Nezteb
Copy link

Nezteb commented Nov 18, 2023

Hey @paulo-ferraz-oliveira!

I made a few changes and made a PR to your fork. Let me know what you think. 😄

@paulo-ferraz-oliveira
Copy link
Contributor Author

paulo-ferraz-oliveira commented Nov 19, 2023

Let me know what you think

I'll make some comments there.

Edit: at the same time, I'm waiting on @jadeallenx's re-review.

Edit: I'll import some of your PR's variable name changes; it introduces logging (not sure it's wanted); and it moves code around (for which I'm still lacking a reply, but didn't do because of that).

@jadeallenx
Copy link
Collaborator

Sorry it took such a long time to get back to this - let's merge it if it's ready

@paulo-ferraz-oliveira
Copy link
Contributor Author

Thanks, @jadeallenx. I'll rebase on the main branch and force-push. If it passes CI I'm Ok with the result and I'll merge.

@paulo-ferraz-oliveira paulo-ferraz-oliveira merged commit bb7e7c0 into kerl:master Jan 2, 2024
@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the feature/auto-cleanup branch January 2, 2024 23:45
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.

Manually deleting installation dir confuses kerl Wrong error messages for folders that doesn't exist

5 participants