godarch / darch

A tool for building and booting stateless and immutable images, bare metal.
https://godarch.com/
MIT License
832 stars 32 forks source link

Can't install on Arch while following docs. #61

Open RashiqAzhan opened 2 years ago

RashiqAzhan commented 2 years ago

Here is the output when I try to install using Pamac.

cleaning bin/
bin/darch
pkg/cmd/darch/main.go:7:2: no required module provides package github.com/godarch/darch/pkg/cmd/darch/commands/helpers: go.mod file not found in current directory or any parent directory; see 'go help modules'
pkg/cmd/darch/main.go:8:2: no required module provides package github.com/godarch/darch/pkg/cmd/darch/commands/hooks: go.mod file not found in current directory or any parent directory; see 'go help modules'
pkg/cmd/darch/main.go:9:2: no required module provides package github.com/godarch/darch/pkg/cmd/darch/commands/images: go.mod file not found in current directory or any parent directory; see 'go help modules'
pkg/cmd/darch/main.go:10:2: no required module provides package github.com/godarch/darch/pkg/cmd/darch/commands/recipes: go.mod file not found in current directory or any parent directory; see 'go help modules'
pkg/cmd/darch/main.go:11:2: no required module provides package github.com/godarch/darch/pkg/cmd/darch/commands/stage: go.mod file not found in current directory or any parent directory; see 'go help modules'
pkg/cmd/darch/main.go:13:2: no required module provides package github.com/urfave/cli: go.mod file not found in current directory or any parent directory; see 'go help modules'
make: *** [Makefile:23: build] Error 1
==> ERROR: A failure occurred in build().
Aborting...
-> error making: darch

I think the project is dead but still asking for aid if anyone has a solution,

czuares commented 2 years ago

@RashiqAzhan if you were still having trouble building this package, this worked for me:

go env -w GO111MODULE=auto
go mod init github.com/godarch/darch
go mod tidy
go mod vendor
make
sudo make install