mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore(cli): warn on template push or create when no lockfile present (#8059)
This commit is contained in:
@ -34,6 +34,10 @@ func dirHasExt(dir string, exts ...string) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func DirHasLockfile(dir string) (bool, error) {
|
||||
return dirHasExt(dir, ".terraform.lock.hcl")
|
||||
}
|
||||
|
||||
// Tar archives a Terraform directory.
|
||||
func Tar(w io.Writer, directory string, limit int64) error {
|
||||
// The total bytes written must be under the limit, so use -1
|
||||
|
Reference in New Issue
Block a user