// LoadLocksFromFile reads locks from the given file, expecting it to be a
// valid dependency lock file, or returns error diagnostics explaining why
// that was not possible.
//
// The returned locks are a snapshot of what was present on disk at the time
// the method was called. It does not take into account any subsequent writes
// to the file, whether through this package's functions or by external
// writers.
//
// If the returned diagnostics contains errors then the returned Locks may
// be incomplete or invalid.
LoadLocksFromFile reads locks from the given file, expecting it to be a
valid dependency lock file, or returns error diagnostics explaining why
that was not possible.

The returned locks are a snapshot of what was present on disk at the time
the method was called. It does not take into account any subsequent writes
to the file, whether through this package's functions or by external
writers.

If the returned diagnostics contains errors then the returned Locks may
be incomplete or invalid.
// LoadLocksFromFile reads locks from the given file expecting it to be a // valid dependency lock file or returns error diagnostics explaining why // that was not possible . // // The returned locks are a snapshot of what was present on disk at the time // the method was called . It does not take into account any subsequent writes // to the file whether through this package ' s functions or by external // writers . // // If the returned diagnostics contains errors then the returned Locks may // be incomplete or invalid .
func LoadLocksFromFile(filename string) (*Locks, tfdiags.Diagnostics) {
	return loadLocks(func(parser *hclparse.Parser) (*hcl.File, hcl.Diagnostics) {
		return parser.ParseHCLFile(filename)
	})
}
func LoadLocksFromFile ( filename string ) ( * Locks , tfdiags . Diagnostics ) { return loadLocks ( func ( parser * hclparse . Parser ) ( * hcl . File , hcl . Diagnostics ) { return parser . ParseHCLFile ( filename ) } ) }
LoadLocksFromFile reads locks from the given file, expecting it to be a
valid dependency lock file, or returns error diagnostics explaining why
that was not possible.
LoadLocksFromFile reads locks from the given file expecting it to be a valid dependency lock file or returns error diagnostics explaining why that was not possible .