Skip to content

Add space so Windows can process map - #130

Draft
eemperor wants to merge 1 commit into
plus3it:mainfrom
eemperor:patch/windows-user-formulas
Draft

Add space so Windows can process map#130
eemperor wants to merge 1 commit into
plus3it:mainfrom
eemperor:patch/windows-user-formulas

Conversation

@eemperor

Copy link
Copy Markdown
Member

No description provided.

TF_VAR_common_args: ${{ inputs.watchmaker-common-args }}
TF_VAR_user_formulas: >-
{"${{ github.event.repository.name }}":"${{ inputs.formula-archive-url || format('https://github.com/{0}/archive/refs/heads/{1}.zip', github.event.pull_request.head.repo.full_name || github.repository, github.event.pull_request.head.ref || github.ref_name) }}"}
{"${{ github.event.repository.name }}": "${{ inputs.formula-archive-url || format('https://github.com/{0}/archive/refs/heads/{1}.zip', github.event.pull_request.head.repo.full_name || github.repository, github.event.pull_request.head.ref || github.ref_name) }}"}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It should be valid json with or without the space. Fwiw, I left it out because it was easier to send the whole string through the various shells. To support spaces, the quoting required is a little heavier.

I suspect the error around the space is actually on the terrafirm side. The parser is "optimistic" in the sense that I didn't test support for parsing the user_formulas input on any windows systems...

https://github.com/plus3it/terrafirm/blob/master/templates/win_userdata.ps1#L21-L22

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Okay. Yeah, I also was looking at the windows template in terrafirm. Windows is doing something to the quoting/spacing that Watchmaker does not like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants