Skip to content
Merged
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
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ jobs:
uses: robherley/go-test-action@v0.7.1
with:
testArguments: -race -cover -covermode=atomic -coverprofile=coverage.txt ./...
- name: Install changelog management tool
run: go install github.com/goreleaser/chglog/cmd/chglog@main
- name: Build changelog
run: chglog init
run: go tool chglog init
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -43,7 +41,5 @@ jobs:
uses: arnested/setup-go@rc
with:
go-version-file: go.mod
- name: Install nilaway
run: go install go.uber.org/nilaway/cmd/nilaway@latest
- name: Run nilaway
run: nilaway ./...
run: go tool nilaway ./...
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
allow-licenses: Apache-2.0, BSD-2-Clause, BSD-3-Clause, MIT, Unlicense
allow-licenses: Apache-2.0, BSD-2-Clause, BSD-3-Clause, LicenseRef-scancode-google-patent-license-golang, MIT, Unlicense
91 changes: 91 additions & 0 deletions .github/workflows/go-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
name: Go version update
on:
workflow_dispatch:
schedule:
- cron: '45 * * * *'

permissions:
contents: read

jobs:
stable:
name: Stable
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: arnested/go-version-action@v2
id: go-version
with:
patch-level: true
- name: Setup Go ${{ steps.go-version.outputs.latest }}
uses: arnested/setup-go@rc
with:
go-version: ${{ steps.go-version.outputs.latest }}
- run: go mod edit -go ${{ steps.go-version.outputs.latest }}
- run: go fix ./...
- run: git diff
- name: "Create pull request"
uses: peter-evans/create-pull-request@v8
with:
commit-message: |
Update Go version to ${{ steps.go-version.outputs.latest }}

See the release history: https://go.dev/doc/devel/release#go${{ steps.go-version.outputs.latest }}.
branch: go-version-update
delete-branch: true
title: Update Go version to ${{ steps.go-version.outputs.latest }}
body: |
Update Go version to ${{ steps.go-version.outputs.latest }}.

See [the release history](https://go.dev/doc/devel/release#go${{ steps.go-version.outputs.latest }}).
token: ${{ secrets.PAT_TOKEN }}
unstable:
name: Unstable
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: arnested/go-version-action@v2
id: go-version-stable
with:
patch-level: true
- uses: arnested/go-version-action@v2
id: go-version-unstable
with:
patch-level: true
unstable: true
- name: Get draft release notes URL
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
id: release-notes
run: |
# shellcheck disable=SC2086
echo "URL=https://tip.golang.org/doc/go$(sed -E 's/([0-9]+\.[0-9]+).*/\1/' <<< '${{ steps.go-version-unstable.outputs.latest }}')" >> $GITHUB_OUTPUT
- name: Setup Go ${{ steps.go-version-unstable.outputs.latest }}
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
uses: arnested/setup-go@rc
with:
go-version: ${{ steps.go-version-unstable.outputs.latest }}
- run: go mod edit -go ${{ steps.go-version-unstable.outputs.latest }}
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
- run: go fix ./...
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
- run: git diff
if: steps.go-version-unstable.outputs.latest != steps.go-version-stable.outputs.latest
- name: "Create pull request"
uses: peter-evans/create-pull-request@v8
with:
draft: true
commit-message: |
Test Go unstable version ${{ steps.go-version-unstable.outputs.latest }}

See the draft release notes: ${{ steps.release-notes.outputs.URL }}.
branch: go-version-unstable-test
delete-branch: true
title: Test Go unstable version ${{ steps.go-version-unstable.outputs.latest }}
body: |
Test Go unstable version ${{ steps.go-version-unstable.outputs.latest }}.

See [the draft release notes](${{ steps.release-notes.outputs.URL }}).

This pull request is only intented for getting feedback on compatibility with future Go versions. Don't merge it!
token: ${{ secrets.PAT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Install Go ${{ steps.go-version.outputs.minimal }}
uses: arnested/setup-go@rc
with:
go-version: ${{ steps.go-version.outputs.minimal }}
go-version-file: go.mod
- run: go version
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ jobs:
- name: Set up Go ${{ steps.go-version.outputs.go-mod-version }}
uses: arnested/setup-go@rc
with:
go-version: ${{ steps.go-version.outputs.go-mod-version }}
- name: Install changelog management tool
run: go install github.com/goreleaser/chglog/cmd/chglog@main
go-version-file: go.mod
- name: Build changelog
run: chglog init
run: go tool chglog init
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License
===========

Copyright (c) 2018, 2019, 2020, 2021, 2022 Arne Jørgensen
Copyright (c) 2018-2026 Arne Jørgensen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
60 changes: 58 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,66 @@
module github.com/arnested/systemd-state

go 1.25.5
go 1.25.7

require (
github.com/coreos/go-systemd/v22 v22.7.0
github.com/elnormous/contenttype v1.0.4
)

require github.com/godbus/dbus/v5 v5.1.0 // indirect
require (
dario.cat/mergo v1.0.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.4.0 // indirect
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.1.6 // indirect
github.com/cloudflare/circl v1.6.1 // indirect
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.7.0 // indirect
github.com/go-git/go-git/v5 v5.16.4 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/godbus/dbus/v5 v5.2.2 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/goreleaser/chglog v0.7.4 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.18.0 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pjbgf/sha1cd v0.3.2 // indirect
github.com/sagikazarmark/locafero v0.11.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/skeema/knownhosts v1.3.1 // indirect
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
github.com/spf13/afero v1.15.0 // indirect
github.com/spf13/cast v1.10.0 // indirect
github.com/spf13/cobra v1.10.2 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/spf13/viper v1.21.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
gitlab.com/digitalxero/go-conventional-commit v1.0.7 // indirect
go.uber.org/nilaway v0.0.0-20260206063529-501abd00b49c // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.45.0 // indirect
golang.org/x/mod v0.29.0 // indirect
golang.org/x/net v0.47.0 // indirect
golang.org/x/sync v0.18.0 // indirect
golang.org/x/sys v0.40.0 // indirect
golang.org/x/text v0.31.0 // indirect
golang.org/x/tools v0.38.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)

tool (
github.com/goreleaser/chglog/cmd/chglog
go.uber.org/nilaway/cmd/nilaway
)
Loading
Loading