Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

go2nix probably can't be called in a builder because nix-prefetch-git wants access to the store #77

@deliciouslytyped

Description

@deliciouslytyped

As far as I can tell, go2nix save only uses nix-prefetch-git to get a hash for some things:

go2nix/hash.go

Line 16 in 52270bd

func calculateHash(url, pathType string) (hash string) {

It doesn't actually need the files to end up in the store? So it would be nice if it would just use nix-hash directly and that would mean it would be possible to run in a nix sandbox I think?

Edit: or be able to call nix-prefetch-git without needing to poke the store.

The actual error in question: Command /nix/store/8adaygqps8a6vivrwb2d5l57lz5gnxwr-nix-prefetch-git/bin/nix-prefetch-git [nix-prefetch-git --fetch-submodules file:///build/src/the.domain/go/some-project] failed: exit status 1

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