pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Running `go generate` from pkgsrc



Tobias Nygren <tnn%NetBSD.org@localhost> wrote:

> Hi,
> 
> On Mon, 28 Aug 2023 20:34:46 +0000
> Kevin Bloom <kevin.bloom%posteo.net@localhost> wrote:
> 
> > you're supposed to run `go generate ./...` and `go vet ./...` before
> > running `go build`. Without doing these steps, it fails to build even when done
> > manually outside of pkgsrc.
> > 
> > How do I run these commands from the pkgsrc framework? I've looked through
> > countless other go packages and haven't seen this done. Maybe I'm missing
> > something?
> 
> Basically, you need to roll your own pre-build target. devel/git-lfs is
> an example of a package that has a similar requirement and may be useful
> as a starting point.
> 
> Kind regards,
> -Tobias

Thanks Tobias, that worked!!


Home | Main Index | Thread Index | Old Index