Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Migrate to Go Modules (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblum committed Nov 22, 2021
1 parent c71a385 commit 4cf71eb
Show file tree
Hide file tree
Showing 429 changed files with 1,582 additions and 142,348 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go
go:
- 1.13.x
- 1.17.x
os:
- linux
- osx
Expand All @@ -11,7 +11,7 @@ before_install:
- go get github.com/modocache/gover
- go get github.com/keybase/go-updater/test
script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.43.0
- golangci-lint run
- go vet ./...
- go test -v -coverprofile=command.coverprofile ./command
Expand All @@ -21,7 +21,7 @@ script:
- go test -v -coverprofile=service.coverprofile ./service
- go test -v -coverprofile=sources.coverprofile ./sources
- go test -v -coverprofile=util.coverprofile ./util
- go test -v -coverprofile=watchdog.coverprofile ./watchdog
- go test -v -coverprofile=watchdog.coverprofile -test.paniconexit0 ./watchdog
- go test -v -coverprofile=main.coverprofile
- $HOME/gopath/bin/gover
- $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The updater may not protect against certain attacks.

The Keybase updater does do the following (to prevent basic attacks):

- Uses TLS with a pinned certificate for api.keybase.io (update source) for metadata
- Uses TLS with a pinned certificate for api-0.core.keybaseapi.com (update source) for metadata
- Uses TLS to download asset
- Verifies asset digest (SHA256)
- Verifies asset saltpack signature (key IDs are pinned)
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ clone_folder: c:\gopath\src\github.com\keybase\go-updater

environment:
GOPATH: c:\gopath
GOVERSION: 1.9.2
GOVERSION: 1.17.x

install:
- set PATH=%GOPATH%\bin;C:\go\bin;%PATH%
Expand Down
1 change: 1 addition & 0 deletions command/command_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2016 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.

//go:build linux || darwin
// +build linux darwin

package command
Expand Down
1 change: 1 addition & 0 deletions command/command_windows_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2016 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.

//go:build windows
// +build windows

package command
Expand Down
43 changes: 43 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module github.com/keybase/go-updater

go 1.17

require (
github.com/blang/semver v3.5.1+incompatible
github.com/kardianos/osext v0.0.0-20150528142315-6e7f84366347
github.com/keybase/client/go v0.0.0-20211122170721-a66861b2e521
github.com/keybase/go-logging v0.0.0-20211118164508-35a15a9fa71a
github.com/keybase/go-ps v0.0.0-20190827175125-91aafc93ba19
github.com/keybase/saltpack v0.0.0-20211118165207-4039c5df46c0
github.com/stretchr/testify v1.7.0
golang.org/x/sys v0.0.0-20211117180635-dee7805ff2e1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/keybase/backoff v1.0.1-0.20160517061000-726b63b835ec // indirect
github.com/keybase/clockwork v0.1.1-0.20161209210251-976f45f4a979 // indirect
github.com/keybase/go-codec v0.0.0-20180928230036-164397562123 // indirect
github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4 // indirect
github.com/keybase/go-framed-msgpack-rpc v0.0.0-20211118173254-f892386581e8 // indirect
github.com/keybase/go-jsonw v0.0.0-20200325173637-df90f282c233 // indirect
github.com/keybase/msgpackzip v0.0.0-20211109205514-10e4bc329851 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.0.0-20211117183948-ae814b36b871 // indirect
golang.org/x/net v0.0.0-20211118161319-6a13c67c3ce4 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

// keybase maintained forks
replace (
bazil.org/fuse => github.com/keybase/fuse v0.0.0-20210104232444-d36009698767
bitbucket.org/ww/goautoneg => github.com/adjust/goautoneg v0.0.0-20150426214442-d788f35a0315
github.com/stellar/go => github.com/keybase/stellar-org v0.0.0-20191010205648-0fc3bfe3dfa7
github.com/syndtr/goleveldb => github.com/keybase/goleveldb v1.0.1-0.20211106225230-2a53fac0721c
gopkg.in/src-d/go-billy.v4 => github.com/keybase/go-billy v3.1.1-0.20180828145748-b5a7b7bc2074+incompatible
gopkg.in/src-d/go-git.v4 => github.com/keybase/go-git v4.0.0-rc9.0.20190209005256-3a78daa8ce8e+incompatible
mvdan.cc/xurls/v2 => github.com/keybase/xurls/v2 v2.0.1-0.20190725180013-1e015cacd06c
)
Loading

0 comments on commit 4cf71eb

Please sign in to comment.