Skip to content

Add taps : Permission denied / exited with 128 #125

Open
@HugoHeneault

Description

@HugoHeneault

Hi there,

First thanks for that great repo which was a nice introduction to nix to me.

I'm trying to add taps to my setup.
I read #66, and I already did as stated as a solution:

  homebrew = {
    enable = true;
+    taps = ["leoafarias/homebrew-fvm"];
+
+    brews = [
+      "leoafarias/homebrew-fvm"
+    ];

    casks = pkgs.callPackage ./casks.nix {};

But when nix run .#build-switch

It returns

Homebrew bundle...
Tapping leoafarias/fvm
==> Tapping leoafarias/fvm
fatal: could not create leading directories of '/opt/homebrew/Library/Taps/leoafarias/homebrew-fvm': Permission denied
Error: Failure while executing; `git clone https://github.com/leoafarias/homebrew-fvm /opt/homebrew/Library/Taps/leoafarias/homebrew-fvm --origin=origin --template= --config core.fsmonitor=false` exited with 128.
Tapping leoafarias/fvm has failed!
Installing leoafarias/homebrew-fvm
Warning: 'leoafarias/homebrew-fvm' formula is unreadable: No available formula with the name "homebrew-fvm".
Warning: No available formula with the name "homebrew-fvm".
Error: No formulae found for homebrew-fvm.
==> Searching for similarly named formulae...
Installing leoafarias/homebrew-fvm has failed!

Running brew tap leoafarias/fvm returns the same error message :

brew tap leoafarias/fvm                        

==> Tapping leoafarias/fvm
fatal: could not create leading directories of '/opt/homebrew/Library/Taps/leoafarias/homebrew-fvm': Permission denied
Error: Failure while executing; `git clone https://github.com/leoafarias/homebrew-fvm /opt/homebrew/Library/Taps/leoafarias/homebrew-fvm --origin=origin --template= --config core.fsmonitor=false` exited with 128.

I can't figure out what's wrong with my setup. Thank you for your help 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions