8000 Use commit ID for version · Issue #15 · coretech/terrafile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
Use commit ID for version #15
Open
@saliceti

Description

@saliceti

Sometimes I need to test a module I'm developing or I want to pin a particular version temporarily. If I use the commit ID, I get:

aks:
    source:  "https://github.com/DFE-Digital/terraform-modules"
    version: "8c6c2e0dbb6a5e5a9c78db3a55910a8cdd9250d8"
INFO[0000] [*] Removing previously cloned artifacts at terraform/aks/vendor/modules/aks 
INFO[0000] [*] Checking out 8c6c2e0dbb6a5e5a9c78db3a55910a8cdd9250d8 of https://github.com/DFE-Digital/terraform-modules  
FATA[0000] failed to clone repository /usr/bin/git clone --single-branch --depth=1 -b 8c6c2e0dbb6a5e5a9c78db3a55910a8cdd9250d8 https://github.com/DFE-Digital/terraform-modules aks due to error: exit status 128

As a workaround, I create a tag, push the tag, pin terrafile to the tag, then I delete the tag when I'm done. It would be quicker with the simple commit ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet
    < 2DAA div data-testid="sidebar-section" class="Box-sc-g0xbh4-0 kDreLw">

    Development

    No branches or pull requests

    Issue actions

      0