fosite-example icon indicating copy to clipboard operation
fosite-example copied to clipboard

example in readme not working due to 'go get -d' depreciation

Open azophy opened this issue 1 year ago • 0 comments

I'm fairly new to go. when I follow the example in the README, I encounter this error:

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've succeded with running

go install github.com/ory/fosite-example@latest
cd $GOPATH/pkg/mod/github.com/ory/[email protected]/
go run main.go

but I dont think this is the best way. maybe others have better suggestions

azophy avatar Sep 04 '24 23:09 azophy