Skip to content

Commit

Permalink
Merge pull request #31 from multiformats/chore/fix-tests
Browse files Browse the repository at this point in the history
Remove GX, bump spec submodule, fix tests
  • Loading branch information
Stebalien committed May 21, 2020
2 parents b84fc17 + 6519131 commit be9e911
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 52 deletions.
1 change: 0 additions & 1 deletion .gx/lastpubver

This file was deleted.

2 changes: 0 additions & 2 deletions .gxignore

This file was deleted.

2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ env:
global:
- GOTFLAGS="-race"
matrix:
- BUILD_DEPTYPE=gx
- BUILD_DEPTYPE=gomod


Expand All @@ -24,7 +23,6 @@ script:

cache:
directories:
- $GOPATH/src/gx
- $GOPATH/pkg/mod
- /home/travis/.cache/go-build

Expand Down
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,5 @@ test: deps

export IPFS_API ?= v04x.ipfs.io

gx:
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go

deps: gx
gx --verbose install --global
gx-go rewrite
deps:
go get -t ./...
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,6 @@
go get github.com/multiformats/go-multibase
```

Note that `go-multibase` is packaged with Gx, so it is recommended to use Gx to install and use it (see Usage section).

## Usage

This module is packaged with [Gx](https://github.com/whyrusleeping/gx). In order to use it in your own project it is recommended that you:

```sh
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
cd <your-project-repository>
gx init
gx import github.com/multiformats/go-multibase
gx install --global
gx-go --rewrite
```

Please check [Gx](https://github.com/whyrusleeping/gx) and [Gx-go](https://github.com/whyrusleeping/gx-go) documentation for more information.

## Contribute

Contributions welcome. Please check out [the issues](https://github.com/multiformats/go-multibase/issues).
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/multiformats/go-multibase

go 1.11

require (
github.com/mr-tron/base58 v1.1.0
github.com/multiformats/go-base32 v0.0.3
Expand Down
20 changes: 0 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,8 @@
"bugs": {
"url": "https://github.com/multiformats/go-multibase"
},
"gx": {
"dvcsimport": "github.com/multiformats/go-multibase"
},
"gxDependencies": [
{
"author": "mr-tron",
"hash": "QmWFAMPqsEyUX7gDUsRVmMWz59FxSpJ1b2v6bJ1yYzo7jY",
"name": "go-base58-fast",
"version": "0.1.1"
},
{
"author": "Golang",
"hash": "QmPbbYin7KBd1Y1BfUe15vHzwJiioyi3wtKQTtXWWf8SC5",
"name": "base32",
"version": "0.0.3"
}
],
"gxVersion": "0.8.0",
"language": "go",
"license": "",
"name": "go-multibase",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.3.0"
}

2 changes: 1 addition & 1 deletion spec
Submodule spec updated 2 files
+43 −29 README.md
+22 −22 multibase.csv
2 changes: 1 addition & 1 deletion spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestSpec(t *testing.T) {

reader := csv.NewReader(file)
reader.LazyQuotes = false
reader.FieldsPerRecord = 3
reader.FieldsPerRecord = 4
reader.TrimLeadingSpace = true

values, err := reader.ReadAll()
Expand Down

0 comments on commit be9e911

Please sign in to comment.