pax_global_header00006660000000000000000000000064150514064500014512gustar00rootroot0000000000000052 comment=8214e15a7a799dc18f0ef8dd788b830f815d7530 go-systemd-22.6.0/000077500000000000000000000000001505140645000136745ustar00rootroot00000000000000go-systemd-22.6.0/.github/000077500000000000000000000000001505140645000152345ustar00rootroot00000000000000go-systemd-22.6.0/.github/dependabot.yml000066400000000000000000000014571505140645000200730ustar00rootroot00000000000000# Maintained in https://github.com/coreos/repo-templates # Do not edit downstream. version: 2 updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" labels: ["skip-notes"] open-pull-requests-limit: 3 - package-ecosystem: gomod directory: / schedule: interval: weekly open-pull-requests-limit: 10 labels: - area/dependencies # Group all updates together in a single PR. We can remove some # updates from a combined update PR via comments to dependabot: # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/managing-pull-requests-for-dependency-updates#managing-dependabot-pull-requests-for-grouped-updates-with-comment-commands groups: build: patterns: - "*" go-systemd-22.6.0/.github/workflows/000077500000000000000000000000001505140645000172715ustar00rootroot00000000000000go-systemd-22.6.0/.github/workflows/containers.yml000066400000000000000000000012261505140645000221620ustar00rootroot00000000000000--- name: Containers on: push: branches: [main] pull_request: branches: [main] permissions: contents: read jobs: distro-test: name: "Distro test" runs-on: ubuntu-latest strategy: fail-fast: false matrix: baseimage: ['debian:bullseye', 'debian:trixie', 'ubuntu:20.04', 'ubuntu:24.04', 'fedora'] go: [1.23, 1.24, 1.25] steps: - uses: actions/checkout@v5 - name: Run tests in container run: ./scripts/ci-runner.sh run_in_ct ${{ matrix.baseimage }} ${{ matrix.go }} all-done: needs: - distro-test runs-on: ubuntu-latest steps: - run: echo "All jobs completed" go-systemd-22.6.0/.github/workflows/go.yml000066400000000000000000000022171505140645000204230ustar00rootroot00000000000000name: Go on: push: branches: [main] pull_request: branches: [main] permissions: contents: read jobs: build: name: "Build" runs-on: ubuntu-latest strategy: matrix: go: ['1.23.x', '1.24.x', '1.25.x'] steps: - run: sudo apt-get -qq update - name: Install libsystemd-dev run: sudo apt-get install libsystemd-dev - uses: actions/checkout@v5 - name: Setup go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: Go build (source) run: ./scripts/ci-runner.sh build_source - name: Go build (tests) run: ./scripts/ci-runner.sh build_tests lint: runs-on: ubuntu-latest steps: - name: Install dependencies run: | sudo apt-get -qq update sudo apt-get -qq install libsystemd-dev - uses: actions/checkout@v5 - uses: actions/setup-go@v5 with: go-version: stable - uses: golangci/golangci-lint-action@v8 with: version: v2.3 all-done: needs: - build runs-on: ubuntu-latest steps: - run: echo "All jobs completed" go-systemd-22.6.0/.gitignore000066400000000000000000000000121505140645000156550ustar00rootroot00000000000000test_bins go-systemd-22.6.0/.golangci.yml000066400000000000000000000006471505140645000162670ustar00rootroot00000000000000version: "2" formatters: enable: - gofumpt linters: settings: staticcheck: checks: - all - -ST1003 # https://staticcheck.dev/docs/checks/#ST1003 Should not use underscores in Go names. - -ST1005 # https://staticcheck.dev/docs/checks/#ST1005 Error strings should not be capitalized. govet: enable: - nilness exclusions: presets: - std-error-handling go-systemd-22.6.0/CONTRIBUTING.md000066400000000000000000000040331505140645000161250ustar00rootroot00000000000000# How to Contribute CoreOS projects are [Apache 2.0 licensed](LICENSE) and accept contributions via GitHub pull requests. This document outlines some of the conventions on development workflow, commit message formatting, contact points and other resources to make it easier to get your contribution accepted. # Certificate of Origin By contributing to this project you agree to the Developer Certificate of Origin (DCO). This document was created by the Linux Kernel community and is a simple statement that you, as a contributor, have the legal right to make the contribution. See the [DCO](DCO) file for details. ## Getting Started - Fork the repository on GitHub - Read the [README](README.md) for build and test instructions - Play with the project, submit bugs, submit patches! ## Contribution Flow This is a rough outline of what a contributor's workflow looks like: - Create a topic branch from where you want to base your work (usually main). - Make commits of logical units. - Make sure your commit messages are in the proper format (see below). - Push your changes to a topic branch in your fork of the repository. - Make sure the tests pass, and add any new tests as appropriate. - Submit a pull request to the original repository. Thanks for your contributions! ### Format of the Commit Message We follow a rough convention for commit messages that is designed to answer two questions: what changed and why. The subject line should feature the what and the body of the commit should describe the why. ``` scripts: add the test-cluster command this uses tmux to setup a test cluster that you can easily kill and start for debugging. Fixes #38 ``` The format can be described more formally as follows: ``` :