davidbyttow / govips

A lightning fast image processing and resizing library for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to install govips on M1 Mac OS

WeisiminPeng-Simmi opened this issue · comments

I tried to follow the README to install govips, and it shows below error

➜  ~ go get -u github.com/davidbyttow/govips/v2/vips
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'.

I also tried

go install github.com/davidbyttow/govips/v2/vips@latest

it shows

➜  ~ go install github.com/davidbyttow/govips/v2/vips@latest
go: downloading github.com/davidbyttow/govips v0.0.0-20201026223743-b1b72c7305d9
go: downloading github.com/davidbyttow/govips/v2 v2.13.0
go: downloading golang.org/x/net v0.7.0
go: downloading golang.org/x/image v0.5.0
go: downloading golang.org/x/text v0.7.0
package github.com/davidbyttow/govips/v2/vips is not a main package

What command should I use to install govips? Thanks in advance.

➜  ~ go version 
go version go1.20.6 darwin/arm64

It doesn't look to be a bug in govips. Apologies but we don't have bandwidth to help with go tooling.

The install command in govips README doesn't work, should it be updated by govips?

go get is no longer supported in go. could you update the command in README to use go install?
The one in README: go get -u github.com/davidbyttow/govips/v2/vips