Skip to content

chef generate generator flow is quite brokenΒ #262

@jaymzh

Description

@jaymzh

Version:

$ chef -v
Redirecting to cinc
Cinc Workstation version: 24.12.1073
Cinc Client version: 18.6.2
Cinc Auditor version: 5.22.65
Cinc CLI version: 5.6.16
Biome version: 1.6.821
Test Kitchen version: 3.6.0
Cookstyle version: 7.32.8

Environment:

Debian Linux sid

Scenario:

When you run chef generate generator, it tells you:

Add the following to your config file to enable it:
  chefcli.generator_cookbook "/tmp/f/code_generator"

But this syntax is actually invalid:

When loading '/home/phil/.cinc-workstation/config.toml',
the following error occurred:
  parse error on value "." (".")

OK, so first problem is that the tool gives you invalid syntax.

So, lets fix it to be as the docs recommend:

[chefcli]
generator_cookbook = "/tmp/f/code_generator"

That passes syntax checking, but it also doesn't seem to do anything. From here if you run:

chef generate cookbook test

it uses the internal cookbook, not the custom one. One must run:

chef generate cookbook test -f /tmp/f/code_generator

in order for it to take effect.

Steps to Reproduce:

See above.

Expected Result:

config is taken into account

Actual Result:

config is not taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UntriagedAn issue that has yet to be triaged.Type: BugDoes not work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions