Skip to content

Fix MacOS tools alias error #426

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

Merged
merged 2 commits into from
May 12, 2025
Merged

Fix MacOS tools alias error #426

merged 2 commits into from
May 12, 2025

Conversation

FranjoMindek
Copy link
Contributor

Fixes problems caused by:

Aliases and functions do not propagate to shell scripts

Old alias instructions are removed, instead we "alias" the command inside of the script itself.
The script exits if there is no gpatch on MacOS.

Fixes #416

@FranjoMindek FranjoMindek self-assigned this May 12, 2025
@FranjoMindek FranjoMindek added the bug Something isn't working label May 12, 2025
@infomiho infomiho self-requested a review May 12, 2025 11:36
```sh
brew install coreutils # contains grealpath
brew install gpatch
brew install diffutils
Copy link
Collaborator

@infomiho infomiho May 12, 2025

Choose a reason for hiding this comment

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

What about the diffutils? I believe they should also be installed with brew to get the correct behavior?

What about grealpath?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should return install code block. It was part of aliases so I automatically discarded it.
Above is still mentioned to install those deps though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's back.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to double check that realpath alias is no longer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested this without any aliases and it worked. Aliases don't work in shell scripts anyway. That is the reason this PR started:

Aliases and functions do not propagate to shell scripts

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah true, great then 👍 I wanted to be extra safe since I didn't conclude that it's okay to delete it myself.

@FranjoMindek FranjoMindek requested a review from infomiho May 12, 2025 11:43
Copy link
Collaborator

@infomiho infomiho left a comment

Choose a reason for hiding this comment

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

LGTM

@FranjoMindek FranjoMindek merged commit 4c388b6 into main May 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

./tools/dope./sh fails for MacOS
3 participants