-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💝 Vendorless codegen via shell scripting (#386)
* Vendorless codegen in a hacky way * Support for Go 1.22 go work vendor command * Fix codegen cleanup * Remove the go work vendor dir for now, by switch back to go 1.21 * Add the auto-generated code * Working tests * Better clean up of codegen * Adding verify-codegen script * Fix the unit tests * Fixing the fluke test by relaxing the stderr checks * Relaxing checks for stderr to not fail on download lines * Mock truncate of go.work.sum to avoid removing it after tests * Restore the original GOPATH if a custom one was set * Shorter way of redirecting all output to /dev/null
- Loading branch information
Showing
44 changed files
with
2,058 additions
and
1,004 deletions.
There are no files selected for viewing
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,15 @@ | ||
/* | ||
Copyright #{YEAR} The Knative Authors | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ |
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
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 |
---|---|---|
|
@@ -20,5 +20,5 @@ import ( | |
"embed" | ||
) | ||
|
||
//go:embed *.sh | ||
//go:embed *.sh *.go.txt | ||
var Scripts embed.FS |
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,3 @@ | ||
module knative.dev/hack | ||
|
||
go 1.18 | ||
go 1.21 |
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,4 +1,4 @@ | ||
go 1.18 | ||
go 1.21 | ||
|
||
use ( | ||
. | ||
|
Oops, something went wrong.