Skip to content

fix BusyBox sed - #6327

Merged
hickeyma merged 1 commit into
helm:masterfrom
tipok:master
Sep 2, 2019
Merged

hickeyma merged 1 commit into
helm:masterfrom
tipok:master

Conversation

@tipok

@tipok tipok commented Aug 30, 2019 •

Copy link
Copy Markdown
Contributor

BusyBox sed works the same way as GNU sed

What this PR does / why we need it:

Code completion for zsh under alpine is not working currently because BusyBox sed is not identified as a GNU sed.
This leads to
LWORD='[[:<:]]'
RWORD='[[:>:]]'
which is not working in BusyBox sed

Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

@helm-bot helm-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 30, 2019
BusyBox sed works the same way as GNU sed

Signed-off-by: tipok <[email protected]>
@bacongobbler

Copy link
Copy Markdown
Member

cc @marckhouzam

marckhouzam added a commit to VilledeMontreal/acceptance-testing that referenced this pull request Sep 2, 2019
Completion did not work for zsh on alpine, so let's test it explicitly.
The problem was reported in
helm/helm#6327

Signed-off-by: Marc Khouzam <[email protected]>
@marckhouzam

Copy link
Copy Markdown
Member

@tipok Nice find! The problem also applies to helm v3. Would you like to make a PR for the dev-v3 branch also?

I've just added some tests for zsh completion on alpine in the acceptance-testing repo (which currently only works with Helm v3). They fail currently, and start passing when I apply your fix.

I was about to mention that the problem also applies to kubectl, but I see you have already submitted a fix that has been approved (kubernetes/kubernetes#82181) 👍

@bacongobbler LGTM

@tipok

tipok commented Sep 2, 2019 •

Copy link
Copy Markdown
Contributor Author

@marckhouzam sounds good. I'll create an additional PR for the dev-v3 branch

Thank you

@tipok tipok mentioned this pull request Sep 2, 2019
3 tasks

@hickeyma hickeyma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved as per @marckhouzam comment #6327 (comment). Thanks @tipok for the fix.

@hickeyma
hickeyma merged commit 540fe23 into helm:master Sep 2, 2019
marckhouzam added a commit to helm/acceptance-testing that referenced this pull request Sep 3, 2019
Completion did not work for zsh on alpine, so let's test it explicitly.
The problem was reported in
helm/helm#6327

Signed-off-by: Marc Khouzam <[email protected]>
marckhouzam added a commit to helm/acceptance-testing that referenced this pull request Sep 3, 2019
* Add completion testing for zsh on alpine

Completion did not work for zsh on alpine, so let's test it explicitly.
The problem was reported in
helm/helm#6327

Signed-off-by: Marc Khouzam <[email protected]>

* Move robot files to a subdirectory

As more robot files are added, it is cleaner to keep them in their
own directory.

Signed-off-by: Marc Khouzam <[email protected]>

* Missing directory for repos

Signed-off-by: Marc Khouzam <[email protected]>

* Allow completion tests to pass with v2

Signed-off-by: Marc Khouzam <[email protected]>

* Fix merge

Signed-off-by: Marc Khouzam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants