Skip to content

make build fails on fresh env #11

@yuvalk

Description

@yuvalk

https://github.com/netobserv/network-observability-cli/blob/ab18a4b3caea4c79370dd2ded15b79e55de151b1/Makefile#L73

this step fails on envs that doesnt have go.tmz.dev/musttag in their local cache

$ make build
which: no podman in (/home/yuval/.local/bin:/home/yuval/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
basename: missing operand
Try 'basename --help' for more information.
### Formatting code
go fmt ./...
### Test if prerequisites are met, and installing missing dependencies
GOFLAGS="" go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.2
go: downloading go.tmz.dev/musttag v0.7.2
/home/yuval/go/pkg/mod/github.com/golangci/golangci-lint@v1.54.2/pkg/golinters/musttag.go:4:2: unrecognized import path "go.tmz.dev/musttag": parse https://go.tmz.dev/musttag?go-get=1: no go-import meta tags ()
make: *** [Makefile:73: prereqs] Error 1

I'm using

$ go version
go version go1.21.8 linux/amd64

on a new vm (so nothing in my caches yet)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions