Comments (17)
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.
Ahh interesting. I had only ever installed it via the makefile.
Is there a workaround for that?
from mint.
~/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.
Oh I see, I'll fix that now!
from mint.
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.
And I checked, the packages
path gets created before copying anything.
What do you get when you run:
which mint
from mint.
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.
Ah, I'm still on Sierra. Might be it
from mint.
Could you tried running make
on a checkout and see if it works?
from mint.
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.
Got a confirmation that they had the same issue, with the same error, on high sierra
from mint.
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.
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.
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.
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.
The other option is to cache builds in a user directory like ~/.mint
or in a library directory or something
from mint.
#6 should fix this
from mint.
Related Issues (20)
- [CI] Github actions HOT 1
- To support local-packages HOT 1
- Build and cache packages on ci server to accelerate installs
- Swift Package plugin: MintKit compilation errors HOT 2
- Can't run [email protected] due to missing lib_InternalSwiftSyntaxParser.dylib HOT 2
- Allow custom scripts in the Mintfile
- Running (or rather, building) swiftlint 0.50.0-rc.1 fails HOT 4
- Mint 0.17.3 isn't available on brew HOT 1
- i can't install mint HOT 5
- Cannot install IBLinter with latest Mint HOT 1
- `mint run`, but referring to SPM executable name, instead of GitHub repo name? HOT 1
- Support Artifact Bundle
- Cannot find bundle with Bundle.module HOT 5
- mint does not fail when Mintfile does not exists at the specified path HOT 2
- Enable locking versions in `Mintfile.lock` or sth similar HOT 4
- mint which usage HOT 1
- _InternalSwiftSyntaxParser (no such module '_InternalSwiftSyntaxParser')
- Mint doesn't install dependencies HOT 1
- add `cleanup` command
- Having an issue while installing mint on Mac M2 Pro HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mint.