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

Plan Linting: Syntax within associative arrays #5164

Closed
qubitrenegade opened this issue Jun 6, 2018 · 6 comments
Closed

Plan Linting: Syntax within associative arrays #5164

qubitrenegade opened this issue Jun 6, 2018 · 6 comments
Labels
Focus: CLI Related to the Habitat CLI (core/hab) component Focus :Plan Build Priority:Medium Stale Type: Feature Issues that describe a new desired feature

Comments

@qubitrenegade
Copy link
Contributor

qubitrenegade commented Jun 6, 2018

As it stands, the following does not appear to be valid syntax for creating a pkg_binds

pkg_binds=(
  [database] = "port"
)

When attempting to start a plan with binds defined this way the following error results:

Error starting foo/bar #033[36mhab-sup#033[0m(#033[1;37mSS#033[0m)[#033[4;37mcomponents/sup/src/manager/service/spec.rs:389:24#033[0m]: Invalid bind(s), database

Additionally, this allows services to start even though the pkg_binds is defined.

Note that removing the white space around = allows the service to start normally and enforces the pkg_binds:

pkg_binds=(
-  [database] = "port"
+  [database]="port"
)

I think that errors like this should be caught at build time rather than once I've installed my package and am attempting to start it.

Related to #5112

@qubitrenegade
Copy link
Contributor Author

#5065

@baumanj
Copy link
Contributor

baumanj commented Jun 19, 2018

Since shellcheck can catch this exact error (and many more). We should look at integrating it into the plan build process. Not sure if this fits under #5065 or whether we should have a separate issue for it, but this is a good example of the kind of trickiness that would improve our UX.

@stale
Copy link

stale bot commented Apr 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Apr 3, 2020
@qubitrenegade
Copy link
Contributor Author

qubitrenegade commented Apr 3, 2020 via email

@stale stale bot removed the Stale label Apr 3, 2020
@christophermaier christophermaier added Focus: CLI Related to the Habitat CLI (core/hab) component Type: Feature Issues that describe a new desired feature and removed A-cli labels Jul 24, 2020
@stale
Copy link

stale bot commented Sep 20, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Sep 20, 2022
@stale
Copy link

stale bot commented May 22, 2023

This issue has been automatically closed after being stale for 400 days. We still value your input and contribution. Please re-open the issue if desired and leave a comment with details.

@stale stale bot closed this as completed May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: CLI Related to the Habitat CLI (core/hab) component Focus :Plan Build Priority:Medium Stale Type: Feature Issues that describe a new desired feature
Projects
None yet
Development

No branches or pull requests

4 participants