fix: Sync with upstream/master (Commit b9b3605)
#4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview 🌱
This PR reverts changes to OHSU's forked version of gen3-client in order to fix compilation issues related to the unbound furObjects variable.
This PR will make our master branch identical to that of upstream's (including the updates from uc-cdis/cdis-data-client#123 required to run multipart uploads to non-AWS S3 buckets).
Important
This PR also resolves CALYPR Issue #6 related to the misleading version message being included in the command output
Previous Behavior ❌
Compile errors:
➜ go build -o cdis-data-client # github.com/uc-cdis/gen3-client/gen3-client/g3cmd gen3-client/g3cmd/upload-multiple.go:82:30: undefined: furObjects gen3-client/g3cmd/upload-multiple.go:84:13: undefined: batchFURObjects gen3-client/g3cmd/upload-multiple.go:84:32: undefined: workers gen3-client/g3cmd/upload-multiple.go:85:32: undefined: batchFURObjects gen3-client/g3cmd/upload-multiple.go:87:34: undefined: batchFURObjects gen3-client/g3cmd/upload-multiple.go:87:51: undefined: workers gen3-client/g3cmd/upload-multiple.go:87:60: undefined: respCh gen3-client/g3cmd/upload-multiple.go:87:68: undefined: errCh gen3-client/g3cmd/upload-multiple.go:88:7: undefined: batchFURObjects gen3-client/g3cmd/upload-multiple.go:89:32: undefined: batchFURObjects gen3-client/g3cmd/upload-multiple.go:89:32: too many errorsSync 🌀
Tip
Upstream Commit b9b3605
New Behavior ✅
Successful compilation!
➜ go build -o cdis-data-client ➜ ls cdis-data-client cdis-data-client ➜ ./cdis-data-client Gen3 Client for downloading, uploading and submitting data to data commons. gen3-client version: N/A, commit: N/ATest Steps ✍️
1. Build
gen3-client2. Upload Single File via
gen3-client3. Upload Single File via calypr_admin
Next Steps 🌀