From bebdabab9ff5e5514bee0df82719fabf2de7895d Mon Sep 17 00:00:00 2001 From: Pawan Rawal Date: Sat, 24 Feb 2018 18:23:02 +1100 Subject: [PATCH] Replace glide with godep (#27) --- .gitignore | 3 --- Gopkg.lock | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Gopkg.toml | 37 ++++++++++++++++++++++++++++++++++++ Makefile | 6 +++--- README.md | 32 +++++++++++++++---------------- VERSION | 2 +- circle.yml | 8 ++++---- glide.lock | 23 ----------------------- glide.yaml | 7 ------- 9 files changed, 116 insertions(+), 57 deletions(-) create mode 100644 Gopkg.lock create mode 100644 Gopkg.toml delete mode 100644 glide.lock delete mode 100644 glide.yaml diff --git a/.gitignore b/.gitignore index 6b41cdb0e..dfcb89ce5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,9 +10,6 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out -# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 -.glide/ - # Added by CoZ developers vendor/ bin/ diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 000000000..0693251d5 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,55 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/CityOfZion/neo-go" + packages = [ + "cli/server", + "cli/smartcontract", + "pkg/core", + "pkg/network", + "pkg/network/payload", + "pkg/util", + "pkg/vm", + "pkg/vm/compiler" + ] + revision = "8fe079ec8ebb83ce53d6f1535bfe513271231958" + version = "0.11.0" + +[[projects]] + branch = "master" + name = "github.com/golang/snappy" + packages = ["."] + revision = "553a641470496b2327abcac10b36396bd98e45c9" + +[[projects]] + branch = "master" + name = "github.com/syndtr/goleveldb" + packages = [ + "leveldb", + "leveldb/cache", + "leveldb/comparer", + "leveldb/errors", + "leveldb/filter", + "leveldb/iterator", + "leveldb/journal", + "leveldb/memdb", + "leveldb/opt", + "leveldb/storage", + "leveldb/table", + "leveldb/util" + ] + revision = "211f780988068502fe874c44dae530528ebd840f" + +[[projects]] + name = "github.com/urfave/cli" + packages = ["."] + revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1" + version = "v1.20.0" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "ac1d2cc7e9e2cb3985a84af2b75ad9fd78a3b8278abb6d5f7b6dd2210df7c6a2" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 000000000..5f647402b --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,37 @@ +# Gopkg.toml example +# +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" +# +# [prune] +# non-go = false +# go-tests = true +# unused-packages = true + +[[constraint]] + branch = "master" + name = "github.com/syndtr/goleveldb" + +[[constraint]] + name = "github.com/urfave/cli" + version = "1.20.0" + +[prune] + go-tests = true + unused-packages = true diff --git a/Makefile b/Makefile index 26ffa0846..8171d1195 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ check-version: git fetch && (! git rev-list ${VERSION}) deps: - @glide install + @dep ensure push-tag: git checkout ${BRANCH} @@ -17,7 +17,7 @@ push-tag: git push origin ${BRANCH} --tags test: - @go test $(shell glide nv) -cover + @go test ./... -cover vet: - @go vet $(shell glide nv) \ No newline at end of file + @go vet ./... \ No newline at end of file diff --git a/README.md b/README.md index 14a4af689..602bdc6a2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

-

@@ -29,7 +29,7 @@ ## Project Goals -Full port of the original C# [NEO project](https://github.com/neo-project). +Full port of the original C# [NEO project](https://github.com/neo-project). A complete toolkit for the NEO blockchain, including: - Full consensus node @@ -41,7 +41,7 @@ A complete toolkit for the NEO blockchain, including: ## Current State This project is still under heavy development. Still working on internal API's and project layout. T -his should not take longer than 2 weeks. +his should not take longer than 2 weeks. The project will exist out of the following packages: @@ -54,11 +54,11 @@ The project will exist out of the following packages: | smartcontract | started | [@revett](https://github.com/revett) | | cli | started | [@revett](https://github.com/revett) | -# Getting Started +# Getting Started ## Server -Install dependencies, this requires [Glide](https://github.com/Masterminds/glide#install): +Install dependencies, this requires [dep](https://github.com/golang/dep): ``` make deps @@ -70,9 +70,9 @@ Build the **neo-go** CLI: make build ``` -Currently, there is a minimal subset of the NEO protocol implemented. -To start experimenting make sure you a have a private net running on your machine. -If you dont, take a look at [docker-privnet-with-gas](https://hub.docker.com/r/metachris/neo-privnet-with-gas/). +Currently, there is a minimal subset of the NEO protocol implemented. +To start experimenting make sure you a have a private net running on your machine. +If you dont, take a look at [docker-privnet-with-gas](https://hub.docker.com/r/metachris/neo-privnet-with-gas/). Start a NEO node: @@ -86,7 +86,7 @@ You can add multiple seeds if you want: ./bin/neo-go node -seed 127.0.0.1:20333,127.0.01:20334 ``` -By default the server will currently run on port 3000, for testing purposes. +By default the server will currently run on port 3000, for testing purposes. You can change that by setting the tcp flag: ``` @@ -101,8 +101,8 @@ If you want your node to also serve JSON-RPC, you can do that by setting the fol ./bin/neo-go node -rpc 4000 ``` -In this case the server will accept and respond JSON-RPC on port 4000. -Keep in mind that currently there is only a small subset of the JSON-RPC implemented. +In this case the server will accept and respond JSON-RPC on port 4000. +Keep in mind that currently there is only a small subset of the JSON-RPC implemented. Feel free to make a PR with more functionality. ## VM @@ -112,7 +112,7 @@ TODO ``` ## Smart Contracts -> NOTE: At this moment there is only a small subset of the Go language implemented. +> NOTE: At this moment there is only a small subset of the Go language implemented. ### Compile a smart contract @@ -152,10 +152,10 @@ INDEX OPCODE DESC # Contributing -Feel free to contribute to this project after reading the -[contributing guidelines](https://github.com/anthdm/neo-go/blob/master/CONTRIBUTING.md). +Feel free to contribute to this project after reading the +[contributing guidelines](https://github.com/CityOfZion/neo-go/blob/master/CONTRIBUTING.md). -Before starting to work on a certain topic, create an new issue first, +Before starting to work on a certain topic, create an new issue first, describing the feauture/topic you are going to implement. # Contact diff --git a/VERSION b/VERSION index d9df1bbc0..ac454c6a1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.11.0 +0.12.0 diff --git a/circle.yml b/circle.yml index d67c8412d..5801df04c 100644 --- a/circle.yml +++ b/circle.yml @@ -6,8 +6,8 @@ jobs: - image: vidsyhq/go-builder:latest steps: - checkout - - run: go get github.com/Masterminds/glide - - run: glide install + - run: go get -u github.com/golang/dep/cmd/dep + - run: dep ensure - restore_cache: key: dependency-cache-{{ .Revision }} - run: BUILD=false /scripts/build.sh @@ -46,8 +46,8 @@ jobs: - image: vidsyhq/go-builder:latest steps: - checkout - - run: go get github.com/Masterminds/glide - - run: glide install + - run: go get -u github.com/golang/dep/cmd/dep + - run: dep ensure - run: make build workflows: diff --git a/glide.lock b/glide.lock deleted file mode 100644 index fa0b5bca1..000000000 --- a/glide.lock +++ /dev/null @@ -1,23 +0,0 @@ -hash: 5cb2fb077aa0e57c788a99f9ded4bf2d421a04f12f6b8436234d12e93f418f36 -updated: 2018-02-09T16:49:32.538502496+01:00 -imports: -- name: github.com/golang/snappy - version: 553a641470496b2327abcac10b36396bd98e45c9 -- name: github.com/syndtr/goleveldb - version: 211f780988068502fe874c44dae530528ebd840f - subpackages: - - leveldb - - leveldb/cache - - leveldb/comparer - - leveldb/errors - - leveldb/filter - - leveldb/iterator - - leveldb/journal - - leveldb/memdb - - leveldb/opt - - leveldb/storage - - leveldb/table - - leveldb/util -- name: github.com/urfave/cli - version: cfb38830724cc34fedffe9a2a29fb54fa9169cd1 -testImports: [] diff --git a/glide.yaml b/glide.yaml deleted file mode 100644 index 226a13a2b..000000000 --- a/glide.yaml +++ /dev/null @@ -1,7 +0,0 @@ -package: github.com/CityOfZion/neo-go -import: -- package: github.com/syndtr/goleveldb - subpackages: - - leveldb -- package: github.com/urfave/cli - version: ^1.20.0