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

macOS install patch [updated] #102

Merged
merged 4 commits into from
May 24, 2024
Merged

macOS install patch [updated] #102

merged 4 commits into from
May 24, 2024

Conversation

karshPrime
Copy link
Contributor

merge conflict existed in my previous PR cause of some installation cleanup merge that happened before my merge. not a biggie I updated my patch with the new codebase and also made a change to the readme adding a copy command for local-user install.

my previous PR got deleted after I synced my fork with the upstream to get the updated code; doesn't really matter though.

realised it was possible to install only for local user while reading
the source, and realised this rather important info was missing from the
readme.

tested this command, otherwise is pretty self-explanatory with what it
does and how it installs for local user.
apparently under certain conditions this directory may not exists on
macos. looked online to why, and by the looks of it, this dir is created
when certain homebrew installs requires it to be there.

now given i didn't have this dir already there, its possible for someone
else to have same dir structure as me resulting in installation failure.

deleted previous pr... well it got deleted on its own after i synced my
fork with upstream but ehh doesnt' matter. one of the later commits
cleaned the install script which caused the merge conflict. this commit
fixes that.
generated this change from the systemwide amber i got installed by
running my patched install.ab script

two birds one stone. its confirmed my changes work B)
@karshPrime
Copy link
Contributor Author

regarding why this patch was necessary, as it happens /usr/local/bin dir doesn't exist on macos by default, unlike linux. instead this dir is created when certain homebrew packages expects it to be there.

now for the most part, a user might have downloaded some xyz homebrew package that'd create this dir- fair enough, but there'd be people (like me) who wouldn't have this dir already there and hence face installation failure.

Copy link
Member

@Ph0enixKM Ph0enixKM left a comment

Choose a reason for hiding this comment

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

Absolutely @karshPrime. Looks great! Merging

@Ph0enixKM
Copy link
Member

Dang it. It still conflicts after all the merging for today. @karshPrime can you just recompile the install.ab? The conflicts are in the install.sh and should be gone once you recompile.

@karshPrime
Copy link
Contributor Author

karshPrime commented May 24, 2024

updated install.sh and checked it on my system. it works as intended 👍

@karshPrime
Copy link
Contributor Author

image

@Ph0enixKM Ph0enixKM merged commit 5c8e6da into amber-lang:master May 24, 2024
1 check passed
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