-
Notifications
You must be signed in to change notification settings - Fork 78
No write permissions on Packages folder of Marathon #151
Comments
I have the same issue on 10.13.2. |
Try running the install command with the This doesn't seem to be related to permissions in my case, but rather to Swift version mismatch. That error message is misleading. |
The
|
I'm getting this too. It's very user-unfriendly. In fact, attempting to install a package that uses an old version of Swift breaks Marathon entirely such that a simple |
I have the same issue on 10.13.4. |
Same for me |
@JohnSundell any news on this? Cannot use danger-swift because of it |
@Sega-Zero the problem with |
yep, it's still there. should I install danger-swift other way than brew to use a newer version of Marathon? |
Seems like John moved the prefered installation method from |
Nope. It's still there: danger process danger-swift
Updating packages...
$ cd "/Users/user/workspace/dir/" && /usr/bin/env xcrun --sdk macosx swift --version
Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
Target: x86_64-apple-darwin17.5.0
$ cd "/Users/user/.danger-swift/Packages/Generated/" && /usr/bin/env xcrun --sdk macosx swift package --enable-prefetching update
error: unknown option --enable-prefetching; use --help to list available options
Error: TypeError: Cannot read property 'concat' of undefined
at Object.exports.mergeResults (/usr/local/lib/node_modules/danger/distribution/commands/utils/reporting.js:15:32)
at Object.<anonymous> (/usr/local/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:99:51)
at step (/usr/local/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:32:23)
at Object.next (/usr/local/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:13:53)
at /usr/local/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:7:71
at __awaiter (/usr/local/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:3:12)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/danger/distribution/commands/utils/runDangerSubprocess.js:87:48)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:891:16)
script returned exit code 1 Is there a way to tell danger-swift to use Marathon from /usr/local/bin? |
Oh, this seems like a Danger issue, not a Marathon one. We need a new release on brew. Not sure if it's possible to change the bin dependency, but you should be able to build |
I think the original issue here is blocking having this on home-brew actually - https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/22711/version=high_sierra/testReport/brew-test-bot/high_sierra/test_marathon_swift/ Weird that it only happens on high sierra: https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/22711/ |
The original issue can't only happen on high sierra, because it happened to me on sierra. |
Can confirm the home brew issue. I had this problem when I installed with home-brew, but not after uninstalling and reinstalling with make. |
I had this problem when I installed using Mint. |
Still not working when trying to install with Swift 4.1 and homebrew?
|
Would be really awesome if one of you who are experiencing this issue could spend some time debugging it and maybe come up with a solution? It doesn't happen to me on the latest |
@JohnSundell When I was hitting this problem, the trigger was attempting to install a package that uses an old version of Swift (and therefore doesn't compile with the current Swift). Have you tried doing something like that? |
@kballard Ah nice, I'm able to reproduce it now! Still don't know if and when I'll have time to work on a fix, but since we now have concrete reproduction steps it should be something anyone could jump in and debug 👍 |
I came up with the solution. If you are following the tutorial from: https://github.com/JohnSundell/XcodeTheme You're suggesting to install Marathon using: It's because it's not up to date. Given that you're using Xcode, I'm assuming you're on macOS. I followed these steps instead from: https://github.com/JohnSundell/Marathon On macOS
After you have done this, then you can successfully run |
@tranlily so there is no way with |
I'd love for Marathon to fully support Homebrew and be updated regularly, but I personally don't use it and find dealing with Homebrew very time consuming, so chances are low I'll be motivated & able to find the time to keep it up to date. The best would be to set up some form of automatic pipeline so that new releases are automatically published on Homebrew. If someone wants to contribute something like that (if it's even possible) I'd be happy to add it 👍 |
Today I tried to install with brew, but I couldn't... I had to install via make |
We submitted an update for marathon to brew, but in fact this exact error is occurring during the brew CI process: |
I created a new package and pushed a revision to it a couple fo days ago. It's using Swift 4.2 as the package version (the package is here: https://github.com/jsorge/maverick-models.git). When I try to add it to Marathon I get the same messages being reported here:
If I remove the package all goes back to normal and I can edit scripts again. I added a |
I'm still seeing this error message when running in a folder a folder with a & character (ampersand).
This outputs
Understandably this doesn't fly: |
Hello!
I tried installing the Xcode theme found on https://github.com/johnsundell/xcodetheme
Whenever I run the script, I get the following error:
💥 Failed to update packages 👉 Make sure you have write permissions to the folder '/Users/jelleelaut/.marathon/Packages/'
Even when I delete the .marathon folder, it gets recreated and I get the same error.
Thanks for the help!
The text was updated successfully, but these errors were encountered: