Skip to content

rename repo to dashevo/tenderdash - #1

Merged
shumkov merged 8 commits into
masterfrom
prepare-fork
Sep 18, 2020
Merged

shumkov merged 8 commits into
masterfrom
prepare-fork

Conversation

@shumkov

@shumkov shumkov commented Sep 15, 2020 •

Copy link
Copy Markdown
Collaborator

Description

Rename project after forking.

@shumkov shumkov changed the title chore: rename project chore: rename repo to dashevo/dashmint Sep 15, 2020
@shumkov shumkov changed the title chore: rename repo to dashevo/dashmint chore: rename repo to dashevo/tenderdash Sep 15, 2020
@shumkov shumkov changed the title chore: rename repo to dashevo/tenderdash rename repo to dashevo/tenderdash Sep 15, 2020
@alexanderbez

Copy link
Copy Markdown
Contributor

make format worked just fine for me.

@alexanderbez

alexanderbez commented Sep 16, 2020 •

Copy link
Copy Markdown
Contributor

draw_deps draws the graph of deps in the repo. You need graphviz installed for this. If you just install graphviz, it should come bundled with all the deps. e.g. for macOS, $ brew install graphviz.

@alexanderbez

Copy link
Copy Markdown
Contributor

make dist is broken in Tendermint itself....which tells me it's not used. Either way, I'll ask around to see the purpose of this target.

Comment thread DOCKER/README.md
Comment on lines +34 to +35
docker run -it --rm -v "/tmp:/tendermint" dashpay/tenderdash init
docker run -it --rm -v "/tmp:/tendermint" dashpay/tenderdash node --proxy_app=kvstore

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need this?

Suggested change
docker run -it --rm -v "/tmp:/tendermint" dashpay/tenderdash init
docker run -it --rm -v "/tmp:/tendermint" dashpay/tenderdash node --proxy_app=kvstore
docker run -it --rm -v "/tmp:/tenderdash" dashpay/tenderdash init
docker run -it --rm -v "/tmp:/tenderdash" dashpay/tenderdash node --proxy_app=kvstore

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, probably we don't want to rename homedirs, users, binary, and so on. I feel like, it's too many changes and so easy to break things. We could do the total renaming later when we have time to deal with it, right? :)))

Comment thread go.mod Resolved
@shumkov

shumkov commented Sep 16, 2020 •

Copy link
Copy Markdown
Collaborator Author

@alexanderbez

draw_deps draws the graph of deps in the repo. You need graphviz installed for this. If you just install graphviz, it should come bundled with all the deps. e.g. for macOS, $ brew install graphviz.

It still doesn't create an image for me:

go get github.com/RobotsAndPencils/goviz
inputdir does not exist.
 go get github.com/dashevo/tenderdash/cmd/tendermint⏎  

But I fell like it's not so important so we could skip it for now.

@shumkov

shumkov commented Sep 16, 2020 •

Copy link
Copy Markdown
Collaborator Author

@alexanderbez

make format worked just fine for me.

Still doesn't work for me and @antouhou

find . -name '*.go' -type f -not -path "*.git*" -not -name '*.pb.go' -not -name '*pb_test.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "*.git*"  -not -name '*.pb.go' -not -name '*pb_test.go' | xargs goimports -w -local github.com/dashevo/tenderdash
flag provided but not defined: -local
usage: goimports [flags] [path ...]
  -d    display diffs instead of rewriting files
  -e    report all errors (not just the first 10 on different lines)
  -l    list files whose formatting differs from goimport's
  -w    write result to (source) file instead of stdout
make: *** [format] Error 1

We got goimports by go get golang.org/x/tools/cmd/goimports

@shumkov

shumkov commented Sep 16, 2020

Copy link
Copy Markdown
Collaborator Author

@alexanderbez btw, what label (prefix) should we use for this commit message? I didn't find any list of labels in the contribution guide.

@alexanderbez

Copy link
Copy Markdown
Contributor

I honestly think you can ignore the dist and draw_deps targets.

The format target should work -- double check you have goimports installed correctly. $ go get golang.org/x/tools/cmd/goimports is the correct command. What is the result of $ which goimports? Also, what do you see when you execute $ goimports --help?

@shumkov

shumkov commented Sep 16, 2020 •

Copy link
Copy Markdown
Collaborator Author

@alexanderbez

The format target should work -- double check you have goimports installed correctly. $ go get golang.org/x/tools/cmd/goimports is the correct command. What is the result of $ which goimports? Also, what do you see when you execute $ goimports --help?

❯ which goimports
/Users/ivanshumkov/Projects/go/bin/goimports
❯ goimports --help
usage: goimports [flags] [path ...]
  -d	display diffs instead of rewriting files
  -e	report all errors (not just the first 10 on different lines)
  -l	list files whose formatting differs from goimport's
  -w	write result to (source) file instead of stdout

It seems there is no -local flag.

@alexanderbez

Copy link
Copy Markdown
Contributor

Yeah idk why that is, it seems you have a very very old version? Does it say which version/hash it pulls when you go get it?

@shumkov

shumkov commented Sep 17, 2020 •

Copy link
Copy Markdown
Collaborator Author

@alexanderbez

Yeah idk why that is, it seems you have a very very old version? Does it say which version/hash it pulls when you go get it?

❯ go get golang.org/x/tools/cmd/goimports
go: downloading golang.org/x/tools v0.0.0-20200917050209-655488c8ae71
go: found golang.org/x/tools/cmd/goimports in golang.org/x/tools v0.0.0-20200917050209-655488c8ae71
go: golang.org/x/tools upgrade => v0.0.0-20200917050209-655488c8ae71
go: downloading golang.org/x/mod v0.3.0

Comment thread go.sum Resolved
@alexanderbez

Copy link
Copy Markdown
Contributor

@alexanderbez

Yeah idk why that is, it seems you have a very very old version? Does it say which version/hash it pulls when you go get it?

❯ go get golang.org/x/tools/cmd/goimports
go: downloading golang.org/x/tools v0.0.0-20200917050209-655488c8ae71
go: found golang.org/x/tools/cmd/goimports in golang.org/x/tools v0.0.0-20200917050209-655488c8ae71
go: golang.org/x/tools upgrade => v0.0.0-20200917050209-655488c8ae71
go: downloading golang.org/x/mod v0.3.0

This output looks correct and identical to mine. TBH, I have no idea why your goimports is different than mine...

@shumkov

shumkov commented Sep 17, 2020

Copy link
Copy Markdown
Collaborator Author

@alexanderbez

This output looks correct and identical to mine. TBH, I have no idea why your goimports is different than mine...

it seems, this issue is not related to this PR, so we could ignore it for now.

alexanderbez
alexanderbez previously approved these changes Sep 17, 2020
antouhou
antouhou previously approved these changes Sep 18, 2020

@antouhou antouhou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread .circleci/config.yml
source /tmp/workspace/release-version.source
cp /tmp/workspace/tendermint_linux_amd64 DOCKER/tendermint
docker build --label="tendermint" --tag="tendermint/tendermint:${CIRCLE_TAG}" --tag="tendermint/tendermint:latest" "DOCKER"
docker build --label="tendermint" --tag="dashpay/tenderdash:${CIRCLE_TAG}" --tag="dashpay/tenderdash:latest" "DOCKER"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in other places we have dashevo/tenderdash, why dashpay/tenderdash here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our docker hub organization name is "dashpay". We don't have an organization for "dashevo".

@shumkov
shumkov changed the base branch from master to v0.33 September 18, 2020 12:25
@shumkov
shumkov changed the base branch from v0.33 to master September 18, 2020 13:02
@shumkov
shumkov dismissed stale reviews from QuantumExplorer, antouhou, and alexanderbez September 18, 2020 13:02

The base branch was changed.

@shumkov
shumkov merged commit 91ea7f1 into master Sep 18, 2020
@shumkov
shumkov deleted the prepare-fork branch September 18, 2020 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants