Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6583

`puppet module generate` does not honor `--modulepath` on the command line

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 4.5.2
    • Fix Version/s: None
    • Component/s: PMT
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      If --modulepath is specified in `puppet module generate` then the module should be created in that directory

      Show
      If --modulepath is specified in `puppet module generate` then the module should be created in that directory
    • Team:
      Platform Core

      Description

      when running an example command;

      bundle exec puppet module generate glennsarti-dot_net_core --modulepath C:\source\new\modules
      

      Instead of creating the module in `C:\Source\new\modules` where I expect it, it generates it in the local directory.

      The documentation at; https://docs.puppet.com/puppet/latest/reference/modules_fundamentals.html#writing-modules does not mention that the module will be created in the current directory

      The command does not fail and does not warn me that the --modulepath parameter is not valid for `generate`

      There does not appear to be a way to explicitly say "Generate in this specified directory"

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                glenn.sarti Glenn Sarti
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support