Skip to content

Commit

Permalink
internal/ci: cue fmt
Browse files Browse the repository at this point in the history
Format the CUE files in internal/ci with `cue fmt ./...`.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I84eba3d419cd89e5a08d79011aa33f9bbc1df2ad
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202052
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
  • Loading branch information
rogpeppe committed Oct 1, 2024
1 parent 20d6573 commit bdab4b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/ci/base/helpers.cue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
_matchPattern: {
variable: string
pattern: string
expr: [
if strings.HasSuffix(pattern, "*") {
expr: [
if strings.HasSuffix(pattern, "*") {
let prefix = strings.TrimSuffix(pattern, "*")
"startsWith(\(variable), '\(prefix)')"
},
Expand Down
2 changes: 1 addition & 1 deletion internal/ci/github/release.cue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ workflows: release: _repo.bashWorkflow & {
// is defined with the release command in CUE.
name: "Run GoReleaser with CUE"
env: GITHUB_TOKEN: "${{ secrets.CUECKOO_GITHUB_PAT }}"
_run: "cue cmd release"
_run: "cue cmd release"
"working-directory": "./internal/ci/goreleaser"
},
_repo.repositoryDispatch & {
Expand Down
2 changes: 1 addition & 1 deletion internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ workflows: trybot: _repo.bashWorkflow & {

_goGenerate: _registryReadOnlyAccessStep & {
name: "Generate"
_run: "go generate ./..."
_run: "go generate ./..."
// The Go version corresponds to the precise version specified in
// the matrix. Skip windows for now until we work out why re-gen is flaky
if: _isLatestLinux
Expand Down
4 changes: 2 additions & 2 deletions internal/ci/goreleaser/goreleaser.cue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package goreleaser
config: {
#latest: bool @tag(latest, type=bool)

version: 2
version: 2
project_name: "cue"
// Note that gomod.proxy is ignored by `goreleaser release --snapshot`,
// which we use in CI to test the goreleaser config and build,
Expand Down Expand Up @@ -68,7 +68,7 @@ config: {
// For those reasons, let goreleaser create the release, but leaving it as a draft.
draft: true
}
checksum: name_template: "checksums.txt"
checksum: name_template: "checksums.txt"
snapshot: version_template: "{{ .Tag }}-next"
// As explained above, we write our own release notes.
changelog: disable: true
Expand Down

0 comments on commit bdab4b2

Please sign in to comment.