-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ioctl): use ipfs cid as project config url #4053
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4053 +/- ##
==========================================
+ Coverage 75.38% 76.11% +0.73%
==========================================
Files 303 335 +32
Lines 25923 28525 +2602
==========================================
+ Hits 19541 21711 +2170
- Misses 5360 5716 +356
- Partials 1022 1098 +76 ☔ View full report in Codecov by Sentry. |
ioctl/cmd/ws/wsproject.go
Outdated
@@ -227,6 +226,5 @@ func upload(endpoint string, filename, hashstr string) (string, hash.Hash256, er | |||
return "", hash.ZeroHash256, errors.Wrap(err, errUploadProjectConfigFailed.Error()) | |||
} | |||
|
|||
// generate fetch url | |||
return fmt.Sprintf("%s/ipfs/%s", wsProjectIPFSGatewayEndpoint, cid), hash256b, nil | |||
return cid, hash256b, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return fmt.Sprintf("ipfs://%x", cid), hash256b, nil
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
* feat(ioctl): use ipfs cid as project config url * feat: ipfs url with endpoint and cid
Description
use CID as project config url, instead of gateway http url
Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: