firecracker-microvm / firectl

firectl is a command-line tool to run Firecracker microVMs
Apache License 2.0
467 stars 73 forks source link

Can't build on latest ArchLinux #85

Closed ato2 closed 1 year ago

ato2 commented 2 years ago

Any clue ? % yay -Sy --needed --noconfirm firectl :: Synchronizing package databases... core is up to date extra is up to date community is up to date :: Checking for conflicts... :: Checking for inner conflicts... [Aur:1] firectl-0.1.0-1

1 firectl (Build Files Exist) ==> Packages to cleanBuild? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> :: PKGBUILD up to date, Skipping (1/0): firectl 1 firectl (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> :: (1/1) Parsing SRCINFO: firectl ==> Making package: firectl 0.1.0-1 (Mon May 16 19:35:21 2022) ==> Retrieving sources... -> Found firectl-0.1.0.tar.gz ==> Validating source files with b2sums... firectl-0.1.0.tar.gz ... Passed ==> Making package: firectl 0.1.0-1 (Mon May 16 19:35:21 2022) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found firectl-0.1.0.tar.gz ==> Validating source files with b2sums... firectl-0.1.0.tar.gz ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting firectl-0.1.0.tar.gz with bsdtar ==> Starting prepare()... github.com/firecracker-microvm/firectl tested by github.com/firecracker-microvm/firectl.test: package github.com/firecracker-microvm/firectl imports github.com/go-openapi/strfmt from implicitly required module; to add missing requirements, run: go get github.com/go-openapi/strfmt@v0.17.1 ==> ERROR: A failure occurred in prepare(). Aborting... -> error making: firectl

% go get github.com/go-openapi/strfmt@v0.17.1 go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

% go install github.com/go-openapi/strfmt@v0.17.1 package github.com/go-openapi/strfmt is not a main package

ginglis13 commented 1 year ago

Hi @ato2, we do not maintain this package on the AUR. If you'd like to continue using firectl from the AUR, please reach out with this issue to George Rawlinson grawlinson@archlinux.org who I can see is the maintainer for the AUR package. I checked the PKGBUILD from https://aur.archlinux.org/firectl.git - it builds firectl with -mod=vendor; however, this project isn't using vendoring and is using Go modules. The maintainer could remove this -mod=vendor flag to resolve.

Otherwise, you can build this project from source or check out https://github.com/firecracker-microvm/firectl/releases/tag/v0.1.0 manually.

grawlinson commented 1 year ago

Hi! Maintainer of the AUR package here, the package was last touched sometime in 2021, it seems that the behaviour of go mod vendor followed by go build -mod=vendor has changed sometime since then. Pushing a fix shortly.