Skip to content

fix(commands): print consistent addresses in ipfs id#7397

Merged
Stebalien merged 2 commits intomasterfrom
fix/id-addr-format
Jun 2, 2020
Merged

fix(commands): print consistent addresses in ipfs id#7397
Stebalien merged 2 commits intomasterfrom
fix/id-addr-format

Conversation

@Stebalien
Copy link
Member

@Stebalien Stebalien commented May 30, 2020

Consistently append /p2p/QmMyId to addresses when calling ipfs id Me and ipfs id NotMe.

Fixes #7378.

Consistently append `/p2p/QmMyId` to addresses when calling `ipfs id Me` and `ipfs id NotMe`.

Fixes #7378.
@Stebalien Stebalien force-pushed the fix/id-addr-format branch from a691024 to 3aa86f8 Compare May 30, 2020 01:49
@Stebalien Stebalien requested a review from achingbrain May 30, 2020 01:49
Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

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

The tests only test that the output of ipfs id is the same for local and remote nodes, not that /p2p/ is prepended to the id in the output as the PR description says?

@Stebalien
Copy link
Member Author

Well, the test is to fix the issue where ipfs id and ipfs id remote_peer were inconsistent. However, you're right. I don't think we have any tests that directly check if these addresses contain /p2p. I'll add another test.

@Stebalien Stebalien merged commit 22dc1ad into master Jun 2, 2020
@aschmahmann aschmahmann mentioned this pull request Sep 22, 2020
72 tasks
@hacdias hacdias deleted the fix/id-addr-format branch May 9, 2023 10:59
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.

"ipfs id" address format is inconsistent

2 participants