-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
playground: fix usage of site playground CUE version
In CL 1200796, we sort to ensure that _scripts/revendorToolsInternal.bash was run at go:generate time. However, what we missed in that CL is that the go:generate directive is in main.go, which is build constraint limited to wasm/js. Hence, when running 'go generate' (which is a build command and hence limited to considering packages and package files that match the GOOS and GOARCH of the command environment) we end up "missing" the go:generate directive in main.go. This didn't get spotted at the time, because as of that CL the running of revendorToolsInternal.bash would have been a no-op. The lack of synchronisation that had to be manually adjusted for in later CLs was also missed. Fix that by moving both go:generate directives to a build constraint unguarded file gen.go, which is something of a regular pattern in the CUE project. This CL then also contains the relevant diffs that result from revendorToolsInternal.bash actually being run. Signed-off-by: Paul Jolly <[email protected]> Change-Id: Iebaf41c526adf9f7de35370e95fe7be18f04345c Dispatch-Trailer: {"type":"trybot","CL":1204975,"patchset":2,"ref":"refs/changes/75/1204975/2","targetBranch":"master"}
- Loading branch information
Showing
27 changed files
with
510 additions
and
7,517 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
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,18 @@ | ||
// Copyright 2024 The CUE 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. | ||
|
||
package main | ||
|
||
//go:generate ./_scripts/cpWasmExec.bash | ||
//go:generate ./_scripts/revendorToolsInternal.bash |
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
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
Oops, something went wrong.