bsm / openrtb

OpenRTB protocol defintions for Go
Other
288 stars 119 forks source link

can't install #103

Closed SlavaVV closed 1 year ago

SlavaVV commented 1 year ago

Hi guys,

go get github.com/bsm/openrtb/v3 brings: cannot find package "github.com/bsm/openrtb/v3" in any of: C:\Program Files\Go\src\github.com\bsm\openrtb\v3 (from $GOROOT) C:\Users\s_vla\go\src\github.com\bsm\openrtb\v3 (from $GOPATH)

go version: go version go1.20.4 windows/amd64

could you help? I use your regular github.com/bsm/openrtb but need to upgrade according latest rtb

dim commented 1 year ago

You need to use go.mod. For example:

$ go mod init mytestpackage
go: creating new go.mod: module mytestpackage

$ go get github.com/bsm/openrtb/v3
go: downloading github.com/bsm/openrtb/v3 v3.2.0
go: downloading github.com/bsm/openrtb v2.1.2+incompatible
go: added github.com/bsm/openrtb/v3 v3.2.0
SlavaVV commented 1 year ago

I have application package main

according your instruction all other needed packages converts to unreadadble

image

dim commented 1 year ago

You need to import all those dependencies or run go mod tidy - please take a look at https://go.dev/ref/mod

SlavaVV commented 1 year ago

Thanks Bro! All good now

Regards

15 мая 2023 г., в 15:50, Dimitrij Denissenko @.***> написал(а):



You need to import all those dependencies or run go mod tidy - please take a look at https://go.dev/ref/mod

— Reply to this email directly, view it on GitHubhttps://github.com/bsm/openrtb/issues/103#issuecomment-1547801090, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG4WQY2BO23LYBGXNO5SOBLXGIRBHANCNFSM6AAAAAAYBHPQH4. You are receiving this because you authored the thread.Message ID: @.***>