pulumi/sdk/go/common/util
Pat Gavlin 7273bc02c9
[display] Enable WASM compilation (#16246)
These changes contain some minor refactorings to conditionally disable
the use of packages that are cannot be built for `GOOS=js GOARCH=wasm`.
With these edits, `pkg/display` can be built targeting WASM.

These changes act as a safeguard to ensure that we are not adding
additional code that will _prevent_ building `pkg/display` for WASM
targets. They are not sufficient to produce a version of the display
renderer that is appropriate for actual use in a WASM environment:

- The current renderer API is not well-suited for use outside the
context of the CLI
- The current event stream format has no versioning data
- Actually building this code into a WASM module results in an
unpleasantly large file (70M uncompressed, 13M gzipped)

These changes also add a size gate for the built WASM module. The gate
is set to the 110% of the size of the WASM module as of this commit. Our
goal is to lower the size of the WASM module over time; as we do so we
will tighten this gate.

Part of #13258.
2024-05-24 20:27:56 +00:00
..
archive sdk/go/common/util cleanup 2023-03-10 08:49:00 +00:00
ciutil Use `SYSTEM_PULLREQUEST_SOURCECOMMITID` for AZ pipeline on GH PR (#15513) 2024-02-26 14:55:54 +00:00
cmdutil [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
contract sdk/contract: Deprecate non-f variants 2023-03-03 14:37:59 -08:00
deepcopy turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
env Rename self-managed to diy-backend (#15268) 2024-01-30 09:00:15 +00:00
executable Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
fsutil Allow CopyFile to copy symlinks (#15936) 2024-04-16 07:54:36 +00:00
gitutil Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
httputil all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
logging Use the Depth variants in glog calls (#15307) 2024-01-29 22:51:45 +00:00
mapper turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
result Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
retry sdk/common/retry: Fix extraneous backoff 2023-03-24 16:39:02 -07:00
rpcutil [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
yamlutil turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00