From 5206a111767d193b4750d435e4e9a91b0eb01580 Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Mon, 30 Oct 2017 12:16:26 +0100 Subject: [PATCH 1/2] godeps: remove unused github.com/mtchavez/jenkins License: MIT Signed-off-by: Lars Gierth --- Godeps/Godeps.json | 4 - .../github.com/mtchavez/jenkins/.gitignore | 23 ---- .../github.com/mtchavez/jenkins/.travis.yml | 8 -- .../src/github.com/mtchavez/jenkins/Makefile | 11 -- .../src/github.com/mtchavez/jenkins/README.md | 45 -------- .../github.com/mtchavez/jenkins/jenkins.go | 48 --------- .../mtchavez/jenkins/jenkins_suite_test.go | 13 --- .../mtchavez/jenkins/jenkins_test.go | 101 ------------------ 8 files changed, 253 deletions(-) delete mode 100644 Godeps/_workspace/src/github.com/mtchavez/jenkins/.gitignore delete mode 100644 Godeps/_workspace/src/github.com/mtchavez/jenkins/.travis.yml delete mode 100644 Godeps/_workspace/src/github.com/mtchavez/jenkins/Makefile delete mode 100644 Godeps/_workspace/src/github.com/mtchavez/jenkins/README.md delete mode 100644 Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins.go delete mode 100644 Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_suite_test.go delete mode 100644 Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_test.go diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 399b2c0345f..7057f3589f5 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -49,10 +49,6 @@ "ImportPath": "github.com/mitchellh/go-homedir", "Rev": "1f6da4a72e57d4e7edd4a7295a585e0a3999a2d4" }, - { - "ImportPath": "github.com/mtchavez/jenkins", - "Rev": "5a816af6ef21ef401bff5e4b7dd255d63400f497" - }, { "ImportPath": "github.com/syndtr/gosnappy/snappy", "Rev": "156a073208e131d7d2e212cb749feae7c339e846" diff --git a/Godeps/_workspace/src/github.com/mtchavez/jenkins/.gitignore b/Godeps/_workspace/src/github.com/mtchavez/jenkins/.gitignore deleted file mode 100644 index 836562412fe..00000000000 --- a/Godeps/_workspace/src/github.com/mtchavez/jenkins/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test diff --git a/Godeps/_workspace/src/github.com/mtchavez/jenkins/.travis.yml b/Godeps/_workspace/src/github.com/mtchavez/jenkins/.travis.yml deleted file mode 100644 index 25a4cf32346..00000000000 --- a/Godeps/_workspace/src/github.com/mtchavez/jenkins/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -go: - - 1.1 - - tip -install: - - go get github.com/onsi/ginkgo - - go get github.com/onsi/gomega -before_script: go test -i ./... -script: go test ./... diff --git a/Godeps/_workspace/src/github.com/mtchavez/jenkins/Makefile b/Godeps/_workspace/src/github.com/mtchavez/jenkins/Makefile deleted file mode 100644 index f05d467e031..00000000000 --- a/Godeps/_workspace/src/github.com/mtchavez/jenkins/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -build: - go build jenkins.go - -run: - go run jenkins.go - -test: - go test -cover - -default: - go run jenkins.go diff --git a/Godeps/_workspace/src/github.com/mtchavez/jenkins/README.md b/Godeps/_workspace/src/github.com/mtchavez/jenkins/README.md deleted file mode 100644 index 409f9961235..00000000000 --- a/Godeps/_workspace/src/github.com/mtchavez/jenkins/README.md +++ /dev/null @@ -1,45 +0,0 @@ -Jenkins -================= - -Golang Jenkins hash - -[![Build Status](https://travis-ci.org/mtchavez/go-jenkins-hashes.png?branch=master)](https://travis-ci.org/mtchavez/go-jenkins-hashes) - -## Install - -`go get -u github.com/mtchavez/jenkins` - -## Usage - -Jenkins follows the [Hash32](http://golang.org/pkg/hash/#Hash32) interface from the Go standard library - -```go -// Create a new hash -jenkhash := New() - -// Write a string of bytes to hash -key := []byte("my-random-key") -length, err := jenkhash(key) - -// Get uint32 sum of hash -sum := jenkhash.Sum32() - -// Sum hash with byte string -sumbytes := jenkhash.Sum(key) -``` - -## Testing - -Uses [Ginkgo](http://onsi.github.io/ginkgo/) for testing. - -Run via `make test` which will run `go test -cover` - -## Documentation - -Docs on [godoc](http://godoc.org/github.com/mtchavez/jenkins) - -## License - -Written by Chavez - -Released under the MIT License: http://www.opensource.org/licenses/mit-license.php diff --git a/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins.go b/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins.go deleted file mode 100644 index 79667623cd7..00000000000 --- a/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins.go +++ /dev/null @@ -1,48 +0,0 @@ -package jenkins - -import "hash" - -type jenkhash uint32 - -func New() hash.Hash32 { - var j jenkhash = 0 - return &j -} - -func (j *jenkhash) Write(key []byte) (int, error) { - hash := *j - - for _, b := range key { - hash += jenkhash(b) - hash += (hash << 10) - hash ^= (hash >> 6) - } - - hash += (hash << 3) - hash ^= (hash >> 11) - hash += (hash << 15) - - *j = hash - return len(key), nil -} - -func (j *jenkhash) Reset() { - *j = 0 -} - -func (j *jenkhash) Size() int { - return 4 -} - -func (j *jenkhash) BlockSize() int { - return 1 -} - -func (j *jenkhash) Sum32() uint32 { - return uint32(*j) -} - -func (j *jenkhash) Sum(in []byte) []byte { - v := j.Sum32() - return append(in, byte(v>>24), byte(v>>16), byte(v>>8), byte(v)) -} diff --git a/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_suite_test.go b/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_suite_test.go deleted file mode 100644 index ec3911ba30e..00000000000 --- a/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_suite_test.go +++ /dev/null @@ -1,13 +0,0 @@ -package jenkins - -import ( - . "github.com/onsi/ginkgo" - . "github.com/onsi/gomega" - - "testing" -) - -func TestJenkins(t *testing.T) { - RegisterFailHandler(Fail) - RunSpecs(t, "Jenkins Suite") -} diff --git a/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_test.go b/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_test.go deleted file mode 100644 index 1cc4484ef44..00000000000 --- a/Godeps/_workspace/src/github.com/mtchavez/jenkins/jenkins_test.go +++ /dev/null @@ -1,101 +0,0 @@ -package jenkins - -import ( - . "github.com/onsi/ginkgo" - . "github.com/onsi/gomega" - "hash" -) - -var _ = Describe("Jenkins", func() { - - var jhash hash.Hash32 - var key []byte - - BeforeEach(func() { - jhash = New() - key = []byte("Apple") - }) - - Describe("New", func() { - - It("returns jenkhash", func() { - var h *jenkhash - Expect(jhash).To(BeAssignableToTypeOf(h)) - }) - - It("initializes offset to 0", func() { - Expect(jhash.Sum32()).To(Equal(uint32(0))) - }) - }) - - Describe("Write", func() { - - It("returns key length", func() { - length, _ := jhash.Write(key) - Expect(length).To(Equal(5)) - }) - - It("has no error", func() { - _, err := jhash.Write(key) - Expect(err).To(BeNil()) - }) - - }) - - Describe("Reset", func() { - - It("sets back to 0", func() { - Expect(jhash.Sum32()).To(Equal(uint32(0))) - jhash.Write(key) - Expect(jhash.Sum32()).NotTo(Equal(uint32(0))) - jhash.Reset() - Expect(jhash.Sum32()).To(Equal(uint32(0))) - }) - - }) - - Describe("Size", func() { - - It("is 4", func() { - Expect(jhash.Size()).To(Equal(4)) - }) - - }) - - Describe("BlockSize", func() { - - It("is 1", func() { - Expect(jhash.BlockSize()).To(Equal(1)) - }) - - }) - - Describe("Sum32", func() { - - It("defaults to 0", func() { - Expect(jhash.Sum32()).To(Equal(uint32(0))) - }) - - It("sums hash", func() { - jhash.Write(key) - Expect(jhash.Sum32()).To(Equal(uint32(884782484))) - }) - - }) - - Describe("Sum", func() { - - It("default 0 hash byte returned", func() { - expected := []byte{0x41, 0x70, 0x70, 0x6c, 0x65, 0x0, 0x0, 0x0, 0x0} - Expect(jhash.Sum(key)).To(Equal(expected)) - }) - - It("returns sum byte array", func() { - jhash.Write(key) - expected := []byte{0x41, 0x70, 0x70, 0x6c, 0x65, 0x34, 0xbc, 0xb5, 0x94} - Expect(jhash.Sum(key)).To(Equal(expected)) - }) - - }) - -}) From f9e9f566f9bcf4cd1886711c996f822dc5daa177 Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Mon, 30 Oct 2017 14:03:37 +0100 Subject: [PATCH 2/2] cleanup: remove dead gobuilder and equinox stuff License: MIT Signed-off-by: Lars Gierth --- cmd/ipfs/.gobuilder.yml | 15 --------------- cmd/ipfs/equinox.yaml | 6 ------ 2 files changed, 21 deletions(-) delete mode 100644 cmd/ipfs/.gobuilder.yml delete mode 100644 cmd/ipfs/equinox.yaml diff --git a/cmd/ipfs/.gobuilder.yml b/cmd/ipfs/.gobuilder.yml deleted file mode 100644 index 1209b6720ae..00000000000 --- a/cmd/ipfs/.gobuilder.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -build_matrix: - all: - windows: - build_tags: - - nofuse -artifacts: - README.md: dist/README.md - LICENSE: dist/LICENSE - install.sh: dist/install.sh -notify: - - type: dockerhub - target: U2FsdGVkX1/90hvy0xKfT+CndVAJxbKWohRxiTWUq/FCG/5noNAJlFrSl8HviHga75vIJayCFryz0p+KPxf/6lEDm9S3xV4R0HZAZd7XSXKq9WvHAz2Np2gPglKAL5A/voagmmUtfev4aTVVqzKBFg== - filter: success -no_go_fmt: true diff --git a/cmd/ipfs/equinox.yaml b/cmd/ipfs/equinox.yaml deleted file mode 100644 index 9e764e05c8b..00000000000 --- a/cmd/ipfs/equinox.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -equinox-account: CHANGEME -equinox-secret: CHANGEME -equinox-app: CHANGEME -channel: stable -private-key: equinox-priv