Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11492: codegen/go: Remove superfluous newline in doc.go r=Frassle a=Frassle # Description This change fixes the package documentation comment generation that was broken since #10317. That is, Go requires package documentation comment to be strictly before the package statement without newlines in-between. **Good** ``` // Package good has documentation comment. package bad ``` **Bad** ``` // Package bad does no have a documentation comment. package bad ``` ## Checklist <!--- Please provide details if the checkbox below is to be left unchecked. --> - [ ] I have added tests that prove my fix is effective or that my feature works <!--- User-facing changes require a CHANGELOG entry. --> - [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change <!-- If the change(s) in this PR is a modification of an existing call to the Pulumi Service, then the service should honor older versions of the CLI where this change would not exist. You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add it to the service. --> - [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. --> Co-authored-by: Fraser Waters <fraser@pulumi.com>
- Loading branch information
Showing
45 changed files
with
7 additions
and
45 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...us-newline-being-added-between-documentation-comment-and-package-statement-in-doc-go.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- type: fix | ||
scope: sdkgen/go | ||
description: Fixes superfluous newline being added between documentation comment and package statement in doc.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/azure-native-nested-types/go/azure/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// A native Pulumi package for creating and managing Azure resources. | ||
|
||
package azure |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/cyclic-types/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/dash-named-schema/go/foo/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package foo exports types, functions, subpackages for provisioning foo resources. | ||
|
||
package foo |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/dashed-import-schema/go/plant-provider/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package plantprovider exports types, functions, subpackages for provisioning plantprovider resources. | ||
|
||
package plantprovider |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/different-enum/go/plant/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package plant exports types, functions, subpackages for provisioning plant resources. | ||
|
||
package plant |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/enum-reference/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/external-enum/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/external-go-import-aliases/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/external-resource-schema/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/functions-secrets/go/mypkg/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package mypkg exports types, functions, subpackages for provisioning mypkg resources. | ||
|
||
package mypkg |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/go-nested-collections/go/repro/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package repro exports types, functions, subpackages for provisioning repro resources. | ||
|
||
package repro |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/go-plain-ref-repro/go/repro/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package repro exports types, functions, subpackages for provisioning repro resources. | ||
|
||
package repro |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/hyphen-url/go/registrygeoreplication/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package registrygeoreplication exports types, functions, subpackages for provisioning registrygeoreplication resources. | ||
|
||
package registrygeoreplication |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/hyphenated-symbols/go/repro/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package repro exports types, functions, subpackages for provisioning repro resources. | ||
|
||
package repro |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/internal-dependencies-go/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/naming-collisions/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/nested-module-thirdparty/go/foo/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package foo exports types, functions, subpackages for provisioning foo resources. | ||
|
||
package foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package foo exports types, functions, subpackages for provisioning foo resources. | ||
|
||
package foo |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/output-funcs-edgeorder/go/myedgeorder/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package myedgeorder exports types, functions, subpackages for provisioning myedgeorder resources. | ||
|
||
package myedgeorder |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/output-funcs-tfbridge20/go/mypkg/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package mypkg exports types, functions, subpackages for provisioning mypkg resources. | ||
|
||
package mypkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package mypkg exports types, functions, subpackages for provisioning mypkg resources. | ||
|
||
package mypkg |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/plain-and-default/go/foo/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package foo exports types, functions, subpackages for provisioning foo resources. | ||
|
||
package foo |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/plain-object-defaults/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/plain-object-disable-defaults/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/plain-schema-gh6957/go/xyz/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package xyz exports types, functions, subpackages for provisioning xyz resources. | ||
|
||
package xyz |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/provider-config-schema/go/configstation/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package configstation exports types, functions, subpackages for provisioning configstation resources. | ||
|
||
package configstation |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/regress-8403/go/mongodbatlas/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package mongodbatlas exports types, functions, subpackages for provisioning mongodbatlas resources. | ||
|
||
package mongodbatlas |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/regress-go-10527/go/world/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package world exports types, functions, subpackages for provisioning world resources. | ||
|
||
package world |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/regress-go-8664/go/my8664/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package my8664 exports types, functions, subpackages for provisioning my8664 resources. | ||
|
||
package my8664 |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/regress-node-8110/go/my8110/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package my8110 exports types, functions, subpackages for provisioning my8110 resources. | ||
|
||
package my8110 |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/replace-on-change/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/resource-args-python-case-insensitive/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/resource-args-python/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/resource-property-overlap/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package mypkg exports types, functions, subpackages for provisioning mypkg resources. | ||
|
||
package mypkg |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/simple-enum-schema/go/plant/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package plant exports types, functions, subpackages for provisioning plant resources. | ||
|
||
package plant |
1 change: 0 additions & 1 deletion
1
...odegen/testing/test/testdata/simple-methods-schema-single-value-returns/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/simple-methods-schema/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/simple-plain-schema-with-root-package/go/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package different exports types, functions, subpackages for provisioning different resources. | ||
|
||
package different |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/simple-plain-schema/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
...egen/testing/test/testdata/simple-resource-schema-custom-pypackage-name/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/simple-resource-schema/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |
1 change: 0 additions & 1 deletion
1
pkg/codegen/testing/test/testdata/simple-yaml-schema/go/example/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
// Package example exports types, functions, subpackages for provisioning example resources. | ||
|
||
package example |