pulumi/sdk/go/common
Steve Zesch a3738fb251
local workspace project validation should include error message (#15279)
# Description

If project settings are not valid `contract.Requiref(proj.Validate() ==
nil, "proj", "Validate()")` just returns `Validate()` which makes it
difficult to debug why the call to `proj.Validate()` failed. This change
captures the error returned by `proj.Validate()` and includes that as
part of the message.

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [x] I have formatted my code using `gofumpt`
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version

---------

Co-authored-by: Fraser Waters <frassle@gmail.com>
2024-01-28 15:29:14 +00:00
..
apitype Enable finding Pulumi projects created from Templates (#15056) 2024-01-24 16:47:12 +00:00
channel Send all events to the engine event stream (#14607) 2023-11-20 21:55:59 +00:00
constant Send update metadata about update plans 2022-10-12 22:55:59 +01:00
diag turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
encoding all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
env [auto/go] Add new API to install the Pulumi CLI (#15049) 2024-01-26 16:01:17 +00:00
promise Use promise rather than `atomic.Value` to record step errors. (#14612) 2023-11-18 19:03:35 +00:00
resource [conformance tests] Fix run root and use program info everywhere (#15191) 2024-01-25 23:28:58 +00:00
slice Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
testing Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
tokens Fix stack name validation check (#15245) 2024-01-27 10:35:20 +00:00
tools all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util Move buildutil out of sdk/common to the go language host (#15168) 2024-01-17 22:25:47 +00:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace local workspace project validation should include error message (#15279) 2024-01-28 15:29:14 +00:00