Giter Club home page Giter Club logo

Comments (17)

yonaskolb avatar yonaskolb commented on May 4, 2024 1

I've update to High Sierra and can confirm the issue. I've added the following to the readme.
That should work for you. If you can think of a better solution let me know 👍


⚠️ High Sierra

If you are running High Sierra your permissions to /usr/local may have changed and you will need to run the following commands before installing Mint:

$ sudo mkdir /usr/local/mint
$ sudo chown -R $(whoami) /usr/local/mint

This is required so Mint can write to the /usr/local/mint directory to download and cache your builds

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Ahh interesting. I had only ever installed it via the makefile.
Is there a workaround for that?

from mint.

orta avatar orta commented on May 4, 2024
~/dev/projects/danger/peril add_auth_api
❯ ls /usr/local/

Caskroom   Frameworks bin        include    opt        share
Cellar     Homebrew   etc        lib        sbin       var

I think it needs to make the mint/packages dir maybe, but be wary:

~/dev/projects/danger/peril add_auth_api
❯ mkdir /usr/local/mint
mkdir: /usr/local/mint: Permission denied

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Oh I see, I'll fix that now!

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Interesting, I'm not seeing any issues when installing fresh from homebrew and with no usr/local/mint directory. What error are you getting?

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

And I checked, the packages path gets created before copying anything.
What do you get when you run:

which mint

from mint.

orta avatar orta commented on May 4, 2024

I'm on High Sierra, which might be the issue ( could have tightened security on these folders ) - no custom homebrew setup (this install is only 2 weeks old)

~/dev/projects/danger/peril add_auth_api 6s
❯ which mint
/usr/local/bin/mint

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Ah, I'm still on Sierra. Might be it

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

Could you tried running make on a checkout and see if it works?

from mint.

orta avatar orta commented on May 4, 2024

Looks like it's the same thing:

~/dev/projects/oss/swift
❯ git clone https://github.com/yonaskolb/mint.git
Cloning into 'mint'...
remote: Counting objects: 118, done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 118 (delta 48), reused 118 (delta 48), pack-reused 0
Receiving objects: 100% (118/118), 20.28 KiB | 1.01 MiB/s, done.
Resolving deltas: 100% (48/48), done.

~/dev/projects/oss/swift
❯ cd mint

~/dev/projects/oss/swift/mint master
❯ make
swift build --disable-sandbox -c release -Xswiftc -static-stdlib
[...]                                                        ^
Compile Swift Module 'PathKit' (1 sources)
Compile Swift Module 'MintKit' (3 sources)
Compile Swift Module 'Mint' (1 sources)
Linking ./.build/x86_64-apple-macosx10.10/release/Mint
mkdir -p /usr/local/bin
cp -f .build/release/mint /usr/local/bin/mint

~/dev/projects/oss/swift/mint master 36s
❯ which mint
/usr/local/bin/mint

~/dev/projects/oss/swift/mint master
❯ mint install danger/danger-swift
🌱  Error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “github.com_danger_danger-swift” in the folder “packages”." UserInfo={NSFilePath=/usr/local/mint/packages/github.com_danger_danger-swift, NSUnderlyingError=0x7fab68f03a80 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

Gonna see if I can get someone to test the install on Sierra

from mint.

orta avatar orta commented on May 4, 2024

Got a confirmation that they had the same issue, with the same error, on high sierra

from mint.

orta avatar orta commented on May 4, 2024

Just got someone on Sierra to test via homebrew, and they got the same error:

🌱  Error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “github.com_danger_danger-swift” in the folder “packages”." UserInfo={NSFilePath=/usr/local/mint/packages/github.com_danger_danger-swift, NSUnderlyingError=0x7fab68f03a80 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

from mint.

orta avatar orta commented on May 4, 2024

Wait, no it was via makefile, this was the script:

git clone https://github.com/yonaskolb/mint.git
cd mint
make

mint install danger/danger-swift

from mint.

orta avatar orta commented on May 4, 2024

Looks like homebrew's install script runs this type of script in the setup: https://github.com/Homebrew/install/blob/master/install#L233-L257

I think it's worth adding something like to the mint install step

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

But I wouldn’t want to make sudo be required for ‘mint install’. I would just run that in the makefile otherwise, but I can understand that people might not want to run an unknown command in sudo, which is why I’ve left it as a seperate step for now.
There must be a better way though

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

The other option is to cache builds in a user directory like ~/.mint or in a library directory or something

from mint.

yonaskolb avatar yonaskolb commented on May 4, 2024

#6 should fix this

from mint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.