Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem installing geziyor #54

Open
baditaflorin opened this issue Sep 28, 2022 · 1 comment
Open

problem installing geziyor #54

baditaflorin opened this issue Sep 28, 2022 · 1 comment

Comments

@baditaflorin
Copy link

go get -u github.com/geziyor/geziyor
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'.
ubuntu2204@ubuntu2204:~/goscrape$ go get go.mod
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'.
ubuntu2204@ubuntu2204:~/goscrape$ go install github.com/geziyor/geziyor
go: 'go install' requires a version when current directory is not in a module
	Try 'go install github.com/geziyor/geziyor@latest' to install the latest version
ubuntu2204@ubuntu2204:~/goscrape$ go install github.com/geziyor/geziyor@latest
go: downloading github.com/geziyor/geziyor v0.0.0-20220429000531-738852f9321d
go: downloading golang.org/x/time v0.0.0-20220411224347-583f2d630306
go: downloading github.com/chromedp/chromedp v0.8.0
go: downloading github.com/PuerkitoBio/goquery v1.8.0
go: downloading github.com/chromedp/cdproto v0.0.0-20220428002153-285dfb42699c
go: downloading golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/go-kit/kit v0.12.0
go: downloading github.com/prometheus/client_golang v1.12.1
go: downloading github.com/temoto/robotstxt v1.1.2
go: downloading github.com/andybalholm/cascadia v1.3.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/prometheus/common v0.34.0
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading google.golang.org/protobuf v1.28.0
go: downloading github.com/VividCortex/gohistogram v1.0.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading golang.org/x/sys v0.0.0-20220422013727-9388b58f7150
package github.com/geziyor/geziyor is not a main package
@musabgultekin
Copy link
Collaborator

musabgultekin commented Sep 28, 2022

Hey, that's because you should be in a module. Its not specific to geziyor. You need to start a new go project with
go mod init your-module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants