Skip to content

Commit be9e911

Browse files
authored
Merge pull request #31 from multiformats/chore/fix-tests
Remove GX, bump spec submodule, fix tests
2 parents b84fc17 + 6519131 commit be9e911

File tree

9 files changed

+5
-52
lines changed

9 files changed

+5
-52
lines changed

.gx/lastpubver

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gxignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env:
1010
global:
1111
- GOTFLAGS="-race"
1212
matrix:
13-
- BUILD_DEPTYPE=gx
1413
- BUILD_DEPTYPE=gomod
1514

1615

@@ -24,7 +23,6 @@ script:
2423

2524
cache:
2625
directories:
27-
- $GOPATH/src/gx
2826
- $GOPATH/pkg/mod
2927
- /home/travis/.cache/go-build
3028

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,5 @@ test: deps
33

44
export IPFS_API ?= v04x.ipfs.io
55

6-
gx:
7-
go get -u github.com/whyrusleeping/gx
8-
go get -u github.com/whyrusleeping/gx-go
9-
10-
deps: gx
11-
gx --verbose install --global
12-
gx-go rewrite
6+
deps:
137
go get -t ./...

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,6 @@
1818
go get github.com/multiformats/go-multibase
1919
```
2020

21-
Note that `go-multibase` is packaged with Gx, so it is recommended to use Gx to install and use it (see Usage section).
22-
23-
## Usage
24-
25-
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:
26-
27-
```sh
28-
go get -u github.com/whyrusleeping/gx
29-
go get -u github.com/whyrusleeping/gx-go
30-
cd <your-project-repository>
31-
gx init
32-
gx import github.com/multiformats/go-multibase
33-
gx install --global
34-
gx-go --rewrite
35-
```
36-
37-
Please check [Gx](https://github.com/whyrusleeping/gx) and [Gx-go](https://github.com/whyrusleeping/gx-go) documentation for more information.
38-
3921
## Contribute
4022

4123
Contributions welcome. Please check out [the issues](https://github.com/multiformats/go-multibase/issues).

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/multiformats/go-multibase
22

3+
go 1.11
4+
35
require (
46
github.com/mr-tron/base58 v1.1.0
57
github.com/multiformats/go-base32 v0.0.3

package.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,8 @@
33
"bugs": {
44
"url": "https://github.com/multiformats/go-multibase"
55
},
6-
"gx": {
7-
"dvcsimport": "github.com/multiformats/go-multibase"
8-
},
9-
"gxDependencies": [
10-
{
11-
"author": "mr-tron",
12-
"hash": "QmWFAMPqsEyUX7gDUsRVmMWz59FxSpJ1b2v6bJ1yYzo7jY",
13-
"name": "go-base58-fast",
14-
"version": "0.1.1"
15-
},
16-
{
17-
"author": "Golang",
18-
"hash": "QmPbbYin7KBd1Y1BfUe15vHzwJiioyi3wtKQTtXWWf8SC5",
19-
"name": "base32",
20-
"version": "0.0.3"
21-
}
22-
],
23-
"gxVersion": "0.8.0",
246
"language": "go",
257
"license": "",
268
"name": "go-multibase",
27-
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
289
"version": "0.3.0"
2910
}
30-

spec

spec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestSpec(t *testing.T) {
1919

2020
reader := csv.NewReader(file)
2121
reader.LazyQuotes = false
22-
reader.FieldsPerRecord = 3
22+
reader.FieldsPerRecord = 4
2323
reader.TrimLeadingSpace = true
2424

2525
values, err := reader.ReadAll()

0 commit comments

Comments
 (0)