-
Notifications
You must be signed in to change notification settings - Fork 261
Clean indexfile for opm alpha generate dockerfile #831
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
Clean indexfile for opm alpha generate dockerfile #831
Conversation
Codecov Report
@@ Coverage Diff @@
## master #831 +/- ##
==========================================
+ Coverage 52.06% 52.07% +0.01%
==========================================
Files 103 103
Lines 9063 9063
==========================================
+ Hits 4719 4720 +1
+ Misses 3439 3438 -1
Partials 905 905
Continue to review full report at Codecov.
|
cmd/opm/alpha/generate/cmd.go
Outdated
| } | ||
|
|
||
| dir, indexName := filepath.Split(fromDir) | ||
| indexName = filepath.Clean(indexName) |
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.
Does it also work to filepath.Clean(fromDir) at the very beginning? It seems like that could help us avoid future regressions if we later make other manipulations based on fromDir.
f3ea6fb to
d2e4cb2
Compare
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankitathomas, joelanford 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 |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/hold |
…rfile Signed-off-by: Ankita Thomas <ankithom@redhat.com>
d2e4cb2 to
10082f8
Compare
|
/hold cancel |
drop trailing slash for catalog directory on
opm alpha generate dockerfileto avoid / in the generated Dockerfile nameCloses #830