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

Parameter with space isn't treated properly #1862

Closed
carolynvs opened this issue Jan 13, 2022 · 9 comments
Closed

Parameter with space isn't treated properly #1862

carolynvs opened this issue Jan 13, 2022 · 9 comments
Labels
bug Oops, sorry!

Comments

@carolynvs
Copy link
Member

Describe the bug

I have a parameter "name" and gave it a value of "demo time". When the bundle printed out the name it only printed demo. Somewhere in Porter seems like we are not quite handling parameters with spaces correctly?

To Reproduce

  1. Install the getporter/hello-llama:v0.1.1 bundle with the name parameter set to a value with a space in it, e.g. demo time

note that it only prints "Hello, demo"

Expected behavior

A clear and concise description of what you expected to happen.

Porter Command and Output

This is output from the operator

$porter install -r getporter/hello-llama:v0.1.1 --param name="demo time"
executing install action from hello-llama (installation: farts)
Hello, demo
execution completed successfully!

Version

v1.0.0-alpha.7

@carolynvs carolynvs added the bug Oops, sorry! label Jan 13, 2022
@carolynvs carolynvs added this to Inbox in Porter and Mixins via automation Jan 13, 2022
@Simpcyclassy
Copy link
Contributor

Hi, @carolynvs my mentor and I are looking through a couple of issues on this repo to work on during our sessions and this looks like a good start. I will like to get assigned.

cc: @sleepypioneer

@Simpcyclassy
Copy link
Contributor

I have been able to reproduce this bug and started to work on fixing it.

@carolynvs
Copy link
Member Author

Oh that's wonderful! Thanks for reproducing and looking into it. 🙇‍♀️

@Simpcyclassy
Copy link
Contributor

Hello, @carolynvs I am contributing to porter using a mac OS Version 11.5.2. I am unable to run make build without error. Below is what the error looks like

make build
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff2034bc9e]

image

image

After creating hello-world directory in the /tmp path and cd into it, then run porter create successfully. I go ahead to run the porter build command and here, we get the error below because of the initial make build not creating the mixins

porter build
Error: unable to build bundle: error while listing mixins: could not list the contents of the mixins directory "/xxx/porter/bin/mixins": open /xxx/porter/bin/mixins: no such file or directory

Then I have to go back and run make build-mixins as a hack to use the porter commands. Would this be a known issue? I took a look and did not find any. How can I get around this?

If this is not a known issue should I go ahead and file one?

@carolynvs
Copy link
Member Author

We want to fix this bug on the release/v1 branch, which uses a different build tool now (mage instead of make). The problem you are seeing is because I don't believe that main is compatible with Go 1.17.

Can you check out the release/v1 branch and then try out the v1 contributor tutorial? That will help get your environment set up properly.

https://release-v1.porter.sh/contribute/tutorial/

@Simpcyclassy
Copy link
Contributor

We tested this and it works perfectly. When we have a fix for this issue can we branch off here as well or does it have to be from main?

@carolynvs
Copy link
Member Author

If you can submit a pull request against the release/v1 branch that would be best, but if you only have it working against main, that is okay too!

carolynvs added a commit to carolynvs/porter that referenced this issue Apr 1, 2022
Add support for mapping the cobra flag type stringArray. This is
prep-work for getporter#1862

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
jemgoss pushed a commit to jemgoss/porter that referenced this issue Apr 5, 2022
Add support for mapping the cobra flag type stringArray. This is
prep-work for getporter#1862

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>

Signed-off-by: Jeremy Goss <jeremy.goss@hpe.com>
@github-actions
Copy link

Closed by #1931.

Porter and Mixins automation moved this from Inbox to Done Apr 29, 2022
@carolynvs carolynvs reopened this Apr 29, 2022
Porter and Mixins automation moved this from Done to Inbox Apr 29, 2022
@github-actions
Copy link

Closed by #2091.

Porter and Mixins automation moved this from Inbox to Done Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Oops, sorry!
Projects
Development

No branches or pull requests

2 participants