pulumi/pkg
bors[bot] 2248fee20d
Merge #11747 #11757
11747: testing/integration: Fix failure without GOPATH r=abhinav a=abhinav

TestGoModEdits requires that one of the following conditions
be true for the test to pass:

- pulumi/pulumi is checked out at $GOPATH/src/github.com/pulumi/pulumi
- PULUMI_GO_DEP_ROOT is set to the directory where it's checked out

With wide usage of Go modules,
we're less likely to have folks working under GOPATH.

As for PULUMI_GO_DEP_ROOT, it makes sense for the generic utility:
Being able to specify where the dependency is checked out
is useful on a per-project basis,
but it makes less sense for this test.
This test is specifically checking the values inside the sdk/go.mod
and the path for that is always fixed.

This change modifies TestGoModEdits to pass
no matter where the repository is checked out
-- as long as it's called "pulumi".
It does so by hard-coding the position of the repository root
relative to the test directory.

This *feels* slightly icky because depRoot refers to the directory
that contains the "pulumi" directory,
but I think that this is less likely to break and easier to fix,
versus looking for a go.mod file
as the project structure evolves over time.

11757: Fix spelling of passphrase r=Frassle a=Frassle



Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
Co-authored-by: Fraser Waters <fraser@pulumi.com>
2023-01-03 18:59:09 +00:00
..
authhelpers Add support for authentication via GOOGLE_CREDENTIALS (#6379) 2022-06-07 16:02:08 +01:00
backend Fix spelling of passphrase 2023-01-03 15:48:49 +00:00
cmd/pulumi Merge #11662 2022-12-21 19:11:13 +00:00
codegen Make pretty-printing conditional 2022-12-22 17:07:55 +01:00
engine Merge #11662 2022-12-21 19:11:13 +00:00
graph Update error handling (#8406) 2021-11-12 18:37:17 -08:00
operations ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
resource Fix spelling of passphrase 2023-01-03 15:48:49 +00:00
secrets Fix spelling of passphrase 2023-01-03 15:48:49 +00:00
testing/integration testing/integration: Fix failure without GOPATH 2022-12-29 17:38:44 -08:00
util cli: Clean up previous yamlutil package, update new commands 2022-12-10 12:29:33 -08:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod chore: post-release go.mod updates 2022-12-21 17:36:55 +00:00
go.sum Merge #11665 2022-12-16 11:35:04 +00:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.