Merge pull request #31 from multiformats/chore/fix-tests

Remove GX, bump spec submodule, fix tests
This commit is contained in:
Steven Allen
2020-05-21 12:14:29 -07:00
committed by GitHub
9 changed files with 5 additions and 52 deletions

View File

@@ -1 +0,0 @@
0.3.0: QmekxXDhCxCJRNuzmHreuaT3BsuJcsjcXWNrtV9C8DRHtd

View File

@@ -1,2 +0,0 @@
/spec/
*_test.go

View File

@@ -10,7 +10,6 @@ env:
global: global:
- GOTFLAGS="-race" - GOTFLAGS="-race"
matrix: matrix:
- BUILD_DEPTYPE=gx
- BUILD_DEPTYPE=gomod - BUILD_DEPTYPE=gomod
@@ -24,7 +23,6 @@ script:
cache: cache:
directories: directories:
- $GOPATH/src/gx
- $GOPATH/pkg/mod - $GOPATH/pkg/mod
- /home/travis/.cache/go-build - /home/travis/.cache/go-build

View File

@@ -3,11 +3,5 @@ test: deps
export IPFS_API ?= v04x.ipfs.io export IPFS_API ?= v04x.ipfs.io
gx: deps:
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
deps: gx
gx --verbose install --global
gx-go rewrite
go get -t ./... go get -t ./...

View File

@@ -18,24 +18,6 @@
go get github.com/multiformats/go-multibase 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 ## Contribute
Contributions welcome. Please check out [the issues](https://github.com/multiformats/go-multibase/issues). Contributions welcome. Please check out [the issues](https://github.com/multiformats/go-multibase/issues).

2
go.mod
View File

@@ -1,5 +1,7 @@
module github.com/multiformats/go-multibase module github.com/multiformats/go-multibase
go 1.11
require ( require (
github.com/mr-tron/base58 v1.1.0 github.com/mr-tron/base58 v1.1.0
github.com/multiformats/go-base32 v0.0.3 github.com/multiformats/go-base32 v0.0.3

View File

@@ -3,28 +3,8 @@
"bugs": { "bugs": {
"url": "https://github.com/multiformats/go-multibase" "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", "language": "go",
"license": "", "license": "",
"name": "go-multibase", "name": "go-multibase",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.3.0" "version": "0.3.0"
} }

2
spec

Submodule spec updated: 65d3fff834...54f897a503

View File

@@ -19,7 +19,7 @@ func TestSpec(t *testing.T) {
reader := csv.NewReader(file) reader := csv.NewReader(file)
reader.LazyQuotes = false reader.LazyQuotes = false
reader.FieldsPerRecord = 3 reader.FieldsPerRecord = 4
reader.TrimLeadingSpace = true reader.TrimLeadingSpace = true
values, err := reader.ReadAll() values, err := reader.ReadAll()