8000 `arguments` seems to be not working · Issue #20 · cargo-generate/cargo-generate-action · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
arguments seems to be not working #20
Open
@orhun

Description

@orhun

Hello! 👋🏼

I wanted to update cargo-generate-action to 0.20.0 for ratatui-templates repository but I can't seem to get arguments working. I need to --define a couple of values since template_values_file is now removed from the action.

- name: Run cargo generate
  uses: cargo-generate/cargo-generate-action@v0.20.0
  with:
    name: ${{ env.PROJECT_NAME }}
    template: component
    arguments: --define gh-username="ratatui" --define project-description="Example of ratatui template" --define use_gitserver=false

I tried many other formattings (single quote, double quote/escaped) but got this error for each one:

work/templates/templates":"/github/workspace" 3e691b:d11e43af5a53417e89436a999d146440  "--path" "component" "--define gh-username=\"ratatui\" --define project-description=\"Example of ratatui template\" --define use_gitserver=false" "--name" "ratatui-github-example"

error: unexpected argument found

See the PR for more information: ratatui/templates#66

As I can tell the GitHub action adds double quotes to the arguments as default which makes them not being processed correctly.

I tried a potential fix here but it didn't work: #19 (nevertheless I think this is good to have)

which makes me think something else is going on here 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0