databricks-cli/bundle/internal/tf/codegen/schema
Pieter Noordhuis c9b4f11947
Update error checks that use the `os` package to use `errors.Is` (#1461)
## Changes

From the [documentation](https://pkg.go.dev/os#IsNotExist) on the
functions in the `os` package:
> This function predates errors.Is. It only supports errors returned by
the os package.
> New code should use errors.Is(err, fs.ErrNotExist).

This issue surfaced while working on using a different `vfs.Path`
implementation that uses errors from the `fs` package. Calls to
`os.IsNotExist` didn't return true for errors that wrap
`fs.ErrNotExist`.

## Tests

n/a
2024-06-03 12:39:36 +00:00
..
generate.go Update Terraform provider schema structs from 1.23.0 (#713) 2023-08-30 13:58:28 +00:00
load.go Generate equivalent Go types from Terraform provider schema (#122) 2022-12-06 16:26:19 +01:00
schema.go Update error checks that use the `os` package to use `errors.Is` (#1461) 2024-06-03 12:39:36 +00:00
version.go Upgrade TF provider to 1.46.0 (#1460) 2024-05-31 07:13:43 +00:00