"website/docs/cli/commands/init.html.md" did not exist on "944a9301df705a490196ffe302ac6037666d0ad7"
  • Masayuki Morita's avatar
    command/init: Add a new flag `-lockfile=readonly` (#27630) · 31a5aa18
    Masayuki Morita authored
    
    
    Fixes #27506
    
    Add a new flag `-lockfile=readonly` to `terraform init`.
    It would be useful to allow us to suppress dependency lockfile changes
    explicitly.
    
    The type of the `-lockfile` flag is string rather than bool, leaving
    room for future extensions to other behavior variants.
    
    The readonly mode suppresses lockfile changes, but should verify
    checksums against the information already recorded. It should conflict
    with the `-upgrade` flag.
    
    Note: In the original use-case described in #27506, I would like to
    suppress adding zh hashes, but a test code here suppresses adding h1
    hashes because it's easy for testing.
    Co-authored-by: default avatarAlisdair McDiarmid <alisdair@users.noreply.github.com>
    31a5aa18