Skip to content

I get "Did not find commit for refs/heads/master" when running ob init #1109

Open
@ninjalf2

Description

When I run ob init I get the following error message:

lasse@eniac:~/src/obelisk$ ob init
Did not find commit for refs/heads/master
Failure for git remote https://github.com/obsidiansystems/obelisk.git
✖ Setting up obelisk

I have tried installing both using the method mentioned in the README (nix-env) and using a flake, which is the method I would prefer.
I run my flake using nix develop --impure and I get dropped correctly into the devShell with ob available, but ob init fails.

My flake looks like this:

{
  description = "A very basic flake";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    obelisk = {
      url = "github:obsidiansystems/obelisk";
      flake = false;
    };
    flake-utils.url = "github:numtide/flake-utils";
  };


  nixConfig = {
    binaryCaches = [ "https://nixcache.reflex-frp.org" ];
    binaryCachePublicKeys = [ "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ];

    extra-substituters = [ "https://nixcache.reflex-frp.org" ];
    extra-trusted-public-keys = [ "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ];
  };

  outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
    let
      pkgs = import inputs.nixpkgs { inherit system; };
      obelisk = pkgs.callPackage inputs.obelisk {
        inherit system;
        terms.security.acme.acceptTerms = true;
      };
    in {
      inherit obelisk;
      devShells.default = pkgs.mkShell {
        nativeBuildInputs = [
          obelisk.command
        ];
      };
    });
}

I am on NixOS 24.11.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions