Skip to content
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

fix: remove requirement for URL to end with .zip #3854

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

metacosm
Copy link
Contributor

What type of PR is this?
/kind bug

Which issue(s) this PR fixes:

Fixes #3853

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 27, 2020
@metacosm metacosm self-assigned this Aug 27, 2020
@@ -904,9 +904,6 @@ func GetAndExtractZip(zipURL string, destination string, pathToUnzip string) err
if zipURL == "" {
return errors.Errorf("Empty zip url: %s", zipURL)
}
if !strings.Contains(zipURL, ".zip") {
return errors.Errorf("Invalid zip url: %s", zipURL)
}

var pathToZip string
if strings.HasPrefix(zipURL, "file://") {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am ok with this PR but do we want to also enforce that the url starts with file:// a url could be a simple http or https one but could have a zip file returned?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're missing the rest of the code which deals with that… 😉

@amitkrout
Copy link
Contributor

platform issue
/test v4.5-integration-e2e

@kadel
Copy link
Member

kadel commented Aug 28, 2020

small fix
/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Aug 28, 2020
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kadel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Aug 28, 2020
@codecov
Copy link

codecov bot commented Aug 28, 2020

Codecov Report

Merging #3854 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3854   +/-   ##
=======================================
  Coverage   44.19%   44.19%           
=======================================
  Files         141      141           
  Lines       13600    13598    -2     
=======================================
  Hits         6010     6010           
+ Misses       7007     7005    -2     
  Partials      583      583           
Impacted Files Coverage Δ
pkg/util/util.go 56.15% <ø> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55c074e...c4636fc. Read the comment docs.

@openshift-merge-robot openshift-merge-robot merged commit 7cd49be into redhat-developer:master Aug 28, 2020
@metacosm metacosm deleted the fix-3853 branch August 28, 2020 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zip starter projects should not require URLs ending with .zip
6 participants