Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/stage2-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ runs:
platforms: all
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: '1.25.6'
go-version: '1.26.0'
- if: ${{ inputs.BINARY == 'podman' }}
name: Set up Podman
run: |
Expand Down
4 changes: 2 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN apk add --update --no-cache \
util-linux
# install Golang
# renovate: datasource=golang-version packageName=go
LET GO_VERSION=1.25.6
LET GO_VERSION=1.26.0
ENV GOPATH=/go
ENV PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
ARG USERARCH
Expand Down Expand Up @@ -156,7 +156,7 @@ earthly-script-no-stdout:
# lint runs basic go linters against the earthly project.
lint:
# renovate: datasource=github-releases packageName=golangci/golangci-lint
LET golangci_lint_version=2.8.0
LET golangci_lint_version=2.9.0
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v$golangci_lint_version
COPY ./.golangci.yaml .
COPY --dir +code/earthly /
Expand Down
3 changes: 1 addition & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ func validatePath(t reflect.Type, path []string) (reflect.Type, string, error) {
return validatePath(t.Elem(), path[1:])
}

for i := range t.NumField() {
field := t.Field(i)
for field := range t.Fields() {
yamlTag := field.Tag.Get("yaml")
helpTag := field.Tag.Get("help")

Expand Down
2 changes: 1 addition & 1 deletion debugger/terminal/terminal_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func ConnectTerm(ctx context.Context, conn io.ReadWriteCloser, console consloggi
break outer
}
default:
console.VerbosePrintf("unhandled terminal data type: %q\n", connDataType)
console.VerbosePrintf("unhandled terminal data type: %d\n", connDataType)
break outer
}
}
Expand Down
7 changes: 5 additions & 2 deletions examples/bazel/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "io_bazel_rules_docker",
sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf",
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz"],
sha256 = "f6dcb97e992f13bc9effd794e9bb300f06b0dadc88061f81ae68d8d5994be964",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_docker/releases/download/v0.26.0/rules_docker-v0.26.0.tar.gz",
"https://github.com/bazelbuild/rules_docker/releases/download/v0.26.0/rules_docker-v0.26.0.tar.gz",
],
)

load(
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/EarthBuild/earthbuild

go 1.25
go 1.26

require (
al.essio.dev/pkg/shellescape v1.6.0
Expand Down
3 changes: 3 additions & 0 deletions util/oidcutil/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ var (
if input.Seconds() < 900 || input.Seconds() > 43200 {
return errors.New("duration must be between 900s and 43200s")
}

return nil
}),
stringToARN(func(input *arn.ARN) error {
if input.Service != "iam" {
return fmt.Errorf(`aws service ("%s") must be "iam"`, input.Service)
}

if !strings.HasPrefix(input.Resource, "role/") {
return fmt.Errorf(`resource ("%s") must be an aws role"`, input.Resource)
}

return nil
}),
),
Expand Down
Loading