8000 Use Go modules by x1ddos · Pull Request #5 · google/fswalker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use Go modules #5

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

Merged
merged 1 commit into from
May 24, 2019
Merged

Use Go modules #5

merged 1 commit into from
May 24, 2019

Conversation

x1ddos
Copy link
Contributor
@x1ddos x1ddos commented May 24, 2019

Mainly followed examples in https://blog.golang.org/using-go-modules
and ran go init. Then:

$ go test ./...
go: finding github.com/google/uuid v1.1.1
go: finding github.com/google/go-cmp/cmp latest
go: finding github.com/golang/protobuf/proto latest
go: finding github.com/golang/protobuf/ptypes latest
go: finding github.com/golang/protobuf/ptypes/timestamp latest
go: downloading github.com/google/uuid v1.1.1
go: extracting github.com/google/uuid v1.1.1
go: finding github.com/google/go-cmp v0.3.0
go: downloading github.com/google/go-cmp v0.3.0
go: extracting github.com/google/go-cmp v0.3.0
go: finding github.com/golang/protobuf v1.3.1
go: downloading github.com/golang/protobuf v1.3.1
go: extracting github.com/golang/protobuf v1.3.1
Loaded file "/tmp/walk.pb786717516" with fingerprint: SHA256(da1b6acdb779c05f4dec6ad7ca8d6b3d32267d285a719888690272b2ce9c1734)

ok  	github.com/google/fswalker	0.031s
?   	github.com/google/fswalker/cmd/reporter	[no test files]
?   	github.com/google/fswalker/cmd/walker	[no test files]
ok  	github.com/google/fswalker/internal/metrics	0.012s
?   	github.com/google/fswalker/proto/fswalker	[no test files]

$ go list -m all
github.com/google/fswalker
github.com/golang/protobuf v1.3.1
github.com/google/go-cmp v0.3.0
github.com/google/uuid v1.1.1

This also updates Travis CI config to use the last 2 version of Go
releases apart from the tip.

To use modules locally while inside GOPATH dir, set GO111MODULE
env variable to on.

We might want to tag this with something like "v0.0.1" to mark
the start of Go modules support.

Mainly followed examples in https://blog.golang.org/using-go-modules
and ran `go init`. Then:

    $ go test ./...
    go: finding github.com/google/uuid v1.1.1
    go: finding github.com/google/go-cmp/cmp latest
    go: finding github.com/golang/protobuf/proto latest
    go: finding github.com/golang/protobuf/ptypes latest
    go: finding github.com/golang/protobuf/ptypes/timestamp latest
    go: downloading github.com/google/uuid v1.1.1
    go: extracting github.com/google/uuid v1.1.1
    go: finding github.com/google/go-cmp v0.3.0
    go: downloading github.com/google/go-cmp v0.3.0
    go: extracting github.com/google/go-cmp v0.3.0
    go: finding github.com/golang/protobuf v1.3.1
    go: downloading github.com/golang/protobuf v1.3.1
    go: extracting github.com/golang/protobuf v1.3.1
    Loaded file "/tmp/walk.pb786717516" with fingerprint: SHA256(da1b6acdb779c05f4dec6ad7ca8d6b3d32267d285a719888690272b2ce9c1734)

    ok  	github.com/google/fswalker	0.031s
    ?   	github.com/google/fswalker/cmd/reporter	[no test files]
    ?   	github.com/google/fswalker/cmd/walker	[no test files]
    ok  	github.com/google/fswalker/internal/metrics	0.012s
    ?   	github.com/google/fswalker/proto/fswalker	[no test files]

    $ go list -m all
    github.com/google/fswalker
    github.com/golang/protobuf v1.3.1
    github.com/google/go-cmp v0.3.0
    github.com/google/uuid v1.1.1

This also
8000
 updates Travis CI config to use the last 2 version of Go
releases apart from the tip.

To use modules locally while inside GOPATH dir, set `GO111MODULE`
env variable to `on`.

We might want to tag this with something like "v0.0.1" to mark
the start of Go modules support.
@x1ddos x1ddos requested review from finfinack and a team May 24, 2019 17:11
@x1ddos x1ddos merged commit caf7eb5 into master May 24, 2019
@x1ddos x1ddos deleted the gomod branch May 24, 2019 17:22
fhchstr added a commit that referenced this pull request Aug 29, 2023
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

Successfully merging this pull request may close these issues.

2 participants
0