2023-05-02 10:33:06 -05:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-09-20 09:05:24 -05:00
|
|
|
// Package depsfile contains the logic for reading and writing OpenTofu's
|
2020-09-03 20:35:31 -05:00
|
|
|
// dependency lock and development override configuration files.
|
|
|
|
//
|
2023-09-26 12:09:27 -05:00
|
|
|
// These files are separate from the main OpenTofu configuration files (.tf)
|
2020-09-03 20:35:31 -05:00
|
|
|
// for a number of reasons. The first is to help establish a distinction
|
|
|
|
// where .tf files configure a particular module while these configure
|
|
|
|
// a whole configuration tree. Another, more practical consideration is that
|
|
|
|
// we intend both of these files to be primarily maintained automatically by
|
2023-09-20 09:05:24 -05:00
|
|
|
// OpenTofu itself, rather than by human-originated edits, and so keeping
|
|
|
|
// them separate means that it's easier to distinguish the files that OpenTofu
|
2020-09-03 20:35:31 -05:00
|
|
|
// will change automatically during normal workflow from the files that
|
2023-09-20 09:05:24 -05:00
|
|
|
// OpenTofu only edits on direct request.
|
2020-09-03 20:35:31 -05:00
|
|
|
//
|
2023-09-20 09:05:24 -05:00
|
|
|
// Both files use HCL syntax, for consistency with other files in OpenTofu
|
2020-09-03 20:35:31 -05:00
|
|
|
// that we expect humans to (in this case, only occasionally) edit directly.
|
|
|
|
// A dependency lock file tracks the most recently selected upstream versions
|
|
|
|
// of each dependency, and is intended for checkin to version control.
|
|
|
|
// A development override file allows for temporarily overriding upstream
|
|
|
|
// dependencies with local files/directories on disk as an aid to testing
|
|
|
|
// a cross-codebase change during development, and should not be saved in
|
|
|
|
// version control.
|
|
|
|
package depsfile
|