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

(BOLT-1589) Support installing any git-based module #3115

Merged
merged 4 commits into from
Jul 27, 2022

Commits on Jul 21, 2022

  1. (BOLT-1589) Support installing any git-based module

    This updates Bolt to support installing git-based modules from any
    source. Now, Bolt will attempt to download metadata directly from GitHub
    or GitLab for public repositories and fall back to cloning the git
    repo's metadata if that fails.
    
    This also updates the spec resolver to no longer calculate a SHA based
    on the ref provided in project configuration. Previously, Bolt would
    calculate a SHA and write it to the Puppetfile to pin the module to a
    specific commit when modules are installed. However, doing this is
    difficult and time-consuming with the move to supporting any git-based
    module.
    
    !feature
    
    * **Support installing any git-based module**
      ([puppetlabs#3109](puppetlabs#3109))
    
      Bolt now supports installing any git-based module. Previously, Bolt
      only supported installing and resolving dependencies for modules
      hosted in a public GitHub repository. Now, Bolt will check both GitHub
      and GitLab before falling back to cloning a module's metadata using
      the `git` executable. This allows users to install modules from
      private repositories, or from locations other than GitHub.
    beechtom committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    0a09069 View commit details
    Browse the repository at this point in the history
  2. (BOLT-1589) Update documentation for installing git modules

    This updates documentation for installing git modules to no longer say
    only public GitHub repositories are supported.
    beechtom committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    84a26a4 View commit details
    Browse the repository at this point in the history
  3. (BOLT-1589) Configure proxy when retrieving git module metadata

    This fixes a bug where the proxy configured in `module-install.proxy`
    was not being set when retrieving metadata for git-based modules.
    Previously, the proxy was only configured when resolving and
    installing modules.
    
    !bug
    
    * **Configure proxy when retrieving metadata for git-based modules**
    
      Bolt now configures a proxy when `module-install.proxy` is set and it
      retrieves metadata for git-based modules. Previously, Bolt was only
      configuring a proxy when it resolved and installed modules.
    beechtom committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    4eae7c4 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2022

  1. (BOLT-1589) Resolve SHAs for git modules

    This updates the `GitSpec` class to resolve the SHA for a git module's
    ref.
    beechtom committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    61fed70 View commit details
    Browse the repository at this point in the history