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

Add support for Mac OS #25

Open
ghost opened this issue Jun 1, 2019 · 8 comments
Open

Add support for Mac OS #25

ghost opened this issue Jun 1, 2019 · 8 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jun 1, 2019

[/tmp]$ cookie -l
dirname: illegal option -- l
usage: dirname path
basename: illegal option -- l
usage: basename string [suffix]
       basename [-a] [-s suffix] string [...]
[ERROR] Template does not exist: /Users/xxx/.cookiecutters/d,c,D:,e:,f,F:,h,l,m:,r:,v,x

any command gives this ^

@bbugyi200
Copy link
Owner

It looks like you are using a MacOS system. MacOS uses a different version of getopt than Linux does. You can install a GNU version of getopt and set it as the default getopt for your system using brew:

brew install gnu-getopt
brew link --force gnu-getopt

@ghost
Copy link
Author

ghost commented Jun 1, 2019

will it break other things

@bbugyi200 bbugyi200 changed the title many errors Add support for Mac OS Jun 1, 2019
@ghost
Copy link
Author

ghost commented Jun 1, 2019

I set in as the default in the $PATH instead of --force, I'll see later if it breaks something else
yes It fixes the problem I had

@ghost
Copy link
Author

ghost commented Jun 1, 2019

I see you changed title, do you want to keep the issue open or I can close it

@bbugyi200
Copy link
Owner

@pouledodue I can't make any promises there. See this stackoverflow answer for more information.

I am going to keep this issue open to remind me to add real support for Mac OS at some point in the future.

@ghost
Copy link
Author

ghost commented Jun 1, 2019

perfect, thank you

@bbugyi200 bbugyi200 added the bug Something isn't working label Jun 1, 2019
@ghost
Copy link
Author

ghost commented Jun 1, 2019

I sent a PR

@bbugyi200
Copy link
Owner

Reviewed and merged (#26). Thanks!

@bbugyi200 bbugyi200 self-assigned this Jun 29, 2019
@bbugyi200 bbugyi200 removed their assignment Aug 16, 2021
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

No branches or pull requests

1 participant