artemnovichkov / sasha

👨‍💼Reduce daily routine with sasha
MIT License
30 stars 3 forks source link

sandbox_apply_container: Operation not permitted #3

Open stalinkay opened 7 years ago

stalinkay commented 7 years ago

Hi @artemnovichkov, I was trying to install your CLIs on a Mac running macOS High Sierra but was unable to. I believe the sandbox is not required when building on macOS High Sierra, see similar issue here. This issue affects Carting, FastFood and Sasha. See output below.

Updating Homebrew...
==> Installing fastfood from artemnovichkov/projects
==> Downloading https://github.com/artemnovichkov/fastfood/archive/1.3.tar.gz
==> Downloading from https://codeload.github.com/artemnovichkov/fastfood/tar.gz/1.3
######################################################################## 100.0%
==> make install PREFIX=/usr/local/Cellar/fastfood/1.3
Last 15 lines from /Users/hq/Library/Logs/Homebrew/fastfood/01.make:
2017-10-15 23:48:56 +0200

make
install
PREFIX=/usr/local/Cellar/fastfood/1.3

swift build -c release -Xswiftc -static-stdlib
error: manifest parse error(s):
sandbox-exec: sandbox_apply_container: Operation not permitted
make: *** [build] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/artemnovichkov/homebrew-projects/issues
artemnovichkov commented 7 years ago

Hi, @stalinkay! I have updated Sasha and disabled sandbox containers in 2.0.3 version. Can you check Sasha installation now? If it works for you, I'll update another scripts.

stalinkay commented 7 years ago

@artemnovichkov It installed successfully. There's, however, an error when I run sasha project in an arbitrary directory.

Enter project name: 
Cool
❌ An error occurred:
The operation couldn’t be completed. (Files.FileSystem.Item.PathError error 0.)
artemnovichkov commented 7 years ago

@stalinkay maybe there is a folder with Cool name in script directory?

stalinkay commented 7 years ago

@artemnovichkov This is the output of ls -a. No Cool folder.

.              .editorconfig  .gitignore     ansible.cfg    files          handlers       hosts.dev      hosts.qa       main.pb.yml    setup.sh       templates      tests          vault.pass
..             .git           Readme.md      bootstrap.rb   group_vars     host_vars      hosts.prod     init-target.sh roles          tasks          test.pb.yml    vars
artemnovichkov commented 7 years ago

Strange, I checked your case and it works for me. Files.FileSystem.Item.PathError related to empty path. Can you run sasha in another directory?

stalinkay commented 7 years ago

@artemnovichkov I created a new directory on the desktop, then ran sasha project but no luck. I'll try it on a different mac and revert back.

Enter project name: 
UI
❌ An error occurred:
The operation couldn’t be completed. (Files.FileSystem.Item.PathError error 0.)
artemnovichkov commented 7 years ago

@stalinkay, ok, thank you, I'll try to find it out. Last question - do you use 2.0.3 version?

stalinkay commented 7 years ago

@artemnovichkov Yeah, see below.

==> Installing sasha from artemnovichkov/projects
==> Downloading https://github.com/artemnovichkov/sasha/archive/2.0.3.tar.gz
==> Downloading from https://codeload.github.com/artemnovichkov/sasha/tar.gz/2.0.3
######################################################################## 100.0%
==> make install PREFIX=/usr/local/Cellar/sasha/2.0.3
🍺  /usr/local/Cellar/sasha/2.0.3: 5 files, 10MB, built in 38 seconds
artemnovichkov commented 7 years ago

Hi, @stalinkay! Another related question - have you changed project.sasha file?

stalinkay commented 7 years ago

@artemnovichkov Hi man. I simply installed sasha and ran sasha project. Nothing else. It also seems that ~/.sasha/project.sasha is not present, which means it is probably not being copied over during installation.

artemnovichkov commented 7 years ago

Hi, @stalinkay! You're right, .sasha isn't copied, but I don't know why: https://github.com/artemnovichkov/sasha/blob/20d5b2640afd1f845266dca7b434324f13074b7b/Makefile#L22-L25 Installation finished w/o errors, but .sasha doesn't exist 🤷‍♂️