New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local workspace project validation should include error message #15279
Conversation
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
Changelog[uncommitted] (2024-01-27)Bug Fixes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change! Just a couple of minor edits needed.
changelog/pending/20240127--sdk-go--include-error-message-in-local-workspace-validation.yaml
Outdated
Show resolved
Hide resolved
…ocal-workspace-validation.yaml Co-authored-by: Fraser Waters <frassle@gmail.com>
Co-authored-by: Fraser Waters <frassle@gmail.com>
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
1 similar comment
PR is now waiting for a maintainer to take action. Note for the maintainer: Commands available:
|
Thanks for the feedback! Updated. |
Merge failed due to pytest errors. Not an issue with this PR itself, we'll get that fixed then get this merged. |
### Features - [backend] Allows the PULUMI_SKIP_CHECKPOINTS environment variable to be set without requiring the PULUMI_EXPERIMENTAL flag. [#15318](#15318) - [auto/go] Add new API to install the Pulumi CLI from the Automation API [#15049](#15049) - [auto/nodejs] Allow disabling version validation when using a custom PulumiCommand instance [#15242](#15242) - [auto/python] Add new API to install the Pulumi CLI [#15204](#15204) - [auto/python] Inline programs can now be defined as async functions. [#15278](#15278) - [pkg/testing] Add RequireEmptyPreviewAfterRefresh option to ProgramTest ### Bug Fixes - [engine] Fix a hang in preview --import-file. [#15203](#15203) - [engine] Engine will now error if aliases request a parent with no URN. [#15232](#15232) - [engine] Fix stack name validation when PULUMI_DISABLE_VALIDATION isn't set. [#15245](#15245) - [engine] Fix a performance issue doing unneeded secret encryption. [#15306](#15306) - [sdk/go] Include error message in local workspace validation. [#15279](#15279) - [sdkgen/go] Remove pulumix references from generated enums [#15280](#15280) - [programgen/nodejs] Fixes generated expression for filebase64 function to use fs.readFileSync directly with base64 encoding option [#15253](#15253) - [sdkgen/python] Use importlib.metadata instead of pkg_resources [#15266](#15266) ### Miscellaneous - [auto/go] Remove obsolete note from FullyQualifiedStackName comment. [#15281](#15281) - [backend/filestate] Upgrade gocloud.dev to the latest version [#15202](#15202) - [sdk/python] Remove compatability code for Python 3.7 and below. [#15276](#15276)
Description
If project settings are not valid
contract.Requiref(proj.Validate() == nil, "proj", "Validate()")
just returnsValidate()
which makes it difficult to debug why the call toproj.Validate()
failed. This change captures the error returned byproj.Validate()
and includes that as part of the message.Checklist
make tidy
to update any new dependenciesmake lint
to verify my code passes the lint checkgofumpt
make changelog
and committed thechangelog/pending/<file>
documenting my change