Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tklauser/numcpus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0
Choose a base ref
...
head repository: tklauser/numcpus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Oct 7, 2024

  1. go.mod: bump golang.org/x/sys from 0.25.0 to 0.26.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.25.0 to 0.26.0.
    - [Commits](golang/sys@v0.25.0...v0.26.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Oct 7, 2024
    Copy the full SHA
    a2d22b0 View commit details

Commits on Oct 8, 2024

  1. .github: Bump actions/checkout from 4.2.0 to 4.2.1

    Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@d632683...eef6144)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Oct 8, 2024
    Copy the full SHA
    ba80d2a View commit details

Commits on Oct 24, 2024

  1. .github: Bump actions/checkout from 4.2.1 to 4.2.2

    Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@eef6144...11bd719)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Oct 24, 2024
    Copy the full SHA
    1738e40 View commit details

Commits on Oct 25, 2024

  1. .github: Bump actions/setup-go from 5.0.2 to 5.1.0

    Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.2 to 5.1.0.
    - [Release notes](https://github.com/actions/setup-go/releases)
    - [Commits](actions/setup-go@0a12ed9...41dfa10)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-go
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Oct 25, 2024
    Copy the full SHA
    69a3b52 View commit details

Commits on Nov 6, 2024

  1. Copy the full SHA
    40b41f7 View commit details

Commits on Nov 8, 2024

  1. go.mod: bump golang.org/x/sys from 0.26.0 to 0.27.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.26.0 to 0.27.0.
    - [Commits](golang/sys@v0.26.0...v0.27.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Nov 8, 2024
    Copy the full SHA
    f3dbdd2 View commit details

Commits on Dec 5, 2024

  1. Copy the full SHA
    763bf79 View commit details
  2. go.mod: bump golang.org/x/sys from 0.27.0 to 0.28.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.27.0 to 0.28.0.
    - [Commits](golang/sys@v0.27.0...v0.28.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Dec 5, 2024
    Copy the full SHA
    ca2d9c8 View commit details

Commits on Dec 11, 2024

  1. .github: Bump actions/setup-go from 5.1.0 to 5.2.0

    Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.1.0 to 5.2.0.
    - [Release notes](https://github.com/actions/setup-go/releases)
    - [Commits](actions/setup-go@41dfa10...3041bf5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-go
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Dec 11, 2024
    Copy the full SHA
    3cb79dd View commit details

Commits on Jan 6, 2025

  1. go.mod: bump golang.org/x/sys from 0.28.0 to 0.29.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.28.0 to 0.29.0.
    - [Commits](golang/sys@v0.28.0...v0.29.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and tklauser committed Jan 6, 2025
    Copy the full SHA
    c50c842 View commit details

Commits on Jan 15, 2025

  1. Copy the full SHA
    afc5db9 View commit details
  2. Merge pull request #112 from tklauser/gha-versions

    .github/workflows: add version comments to used actions
    tklauser authored Jan 15, 2025
    Copy the full SHA
    95e4741 View commit details

Commits on Jan 21, 2025

  1. .github: Bump actions/setup-go from 5.2.0 to 5.3.0

    Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.2.0 to 5.3.0.
    - [Release notes](https://github.com/actions/setup-go/releases)
    - [Commits](actions/setup-go@3041bf5...f111f33)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-go
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 21, 2025
    Copy the full SHA
    8c136d4 View commit details
  2. Merge pull request #113 from tklauser/dependabot/github_actions/actio…

    …ns/setup-go-5.3.0
    
    .github: Bump actions/setup-go from 5.2.0 to 5.3.0
    tklauser authored Jan 21, 2025
    Copy the full SHA
    d0d13b6 View commit details

Commits on Jan 30, 2025

  1. ci: check out code before installing Go

    This gets rid of a GHA warning regarding cache restoration.
    tklauser committed Jan 30, 2025
    Copy the full SHA
    6b11177 View commit details
  2. Copy the full SHA
    68e65a4 View commit details
  3. Merge pull request #114 from tklauser/pr/tklauser/arm-runner

    ci: add ubuntu-24.04-arm runner
    tklauser authored Jan 30, 2025
    Copy the full SHA
    9515edc View commit details

Commits on Feb 5, 2025

  1. go.mod: bump golang.org/x/sys from 0.29.0 to 0.30.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.29.0 to 0.30.0.
    - [Commits](golang/sys@v0.29.0...v0.30.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 5, 2025
    Copy the full SHA
    8f62642 View commit details
  2. Merge pull request #115 from tklauser/dependabot/go_modules/golang.or…

    …g/x/sys-0.30.0
    
    go.mod: bump golang.org/x/sys from 0.29.0 to 0.30.0
    tklauser authored Feb 5, 2025
    Copy the full SHA
    8fd5d10 View commit details

Commits on Feb 26, 2025

  1. Copy the full SHA
    57f37cd View commit details
  2. ci: update Go to 1.24

    tklauser committed Feb 26, 2025
    Copy the full SHA
    0906031 View commit details
  3. Merge pull request #116 from tklauser/go-1.24

    ci: update Go to 1.24
    tklauser authored Feb 26, 2025
    Copy the full SHA
    7cc42f1 View commit details

Commits on Mar 5, 2025

  1. go.mod: update minimum Go version to 1.23.0

    The Go project started to unconditionally update the minimum Go version
    for golang.org/x/ dependencies to go1.23
    
    > all: upgrade go directive to at least 1.23.0 [generated]
    >
    > By now Go 1.24.0 has been released, and Go 1.22 is no longer supported
    > per the Go Release Policy (https://go.dev/doc/devel/release#policy).
    >
    > For golang/go#69095.
    
    This means that this package will no longer be able to support any
    version below that when updating golang.org/x/sys
    tklauser committed Mar 5, 2025
    Copy the full SHA
    37f77b6 View commit details
  2. Merge pull request #117 from tklauser/min-go-1.23

    go.mod: update minimum Go version to 1.23.0
    tklauser authored Mar 5, 2025
    Copy the full SHA
    86ea9a6 View commit details
  3. go.mod: bump golang.org/x/sys from 0.30.0 to 0.31.0

    Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.30.0 to 0.31.0.
    - [Commits](golang/sys@v0.30.0...v0.31.0)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/sys
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 5, 2025
    Copy the full SHA
    ecaee57 View commit details
  4. Merge pull request #118 from tklauser/dependabot/go_modules/golang.or…

    …g/x/sys-0.31.0
    
    go.mod: bump golang.org/x/sys from 0.30.0 to 0.31.0
    tklauser authored Mar 5, 2025
    Copy the full SHA
    811473f View commit details

Commits on Mar 19, 2025

  1. .github: Bump actions/setup-go from 5.3.0 to 5.4.0

    Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.3.0 to 5.4.0.
    - [Release notes](https://github.com/actions/setup-go/releases)
    - [Commits](actions/setup-go@f111f33...0aaccfd)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-go
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 19, 2025
    Copy the full SHA
    f7bb565 View commit details
  2. Copy the full SHA
    3d0da8a View commit details
Showing with 21 additions and 21 deletions.
  1. +3 −3 .cirrus.yml
  2. +5 −5 .github/workflows/static-analysis.yml
  3. +9 −9 .github/workflows/test.yml
  4. +2 −2 go.mod
  5. +2 −2 go.sum
6 changes: 3 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
env:
CIRRUS_CLONE_DEPTH: 1
GO_VERSION: go1.23.0
GO_VERSION: go1.24.0

freebsd_13_task:
freebsd_instance:
image_family: freebsd-13-3
image_family: freebsd-13-5
install_script: |
pkg install -y go
GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
@@ -14,7 +14,7 @@ freebsd_13_task:

freebsd_14_task:
freebsd_instance:
image_family: freebsd-14-0
image_family: freebsd-14-2
install_script: |
pkg install -y go
GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
10 changes: 5 additions & 5 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.0.2
with:
go-version: '1.23'

- name: Check out code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
go-version: '1.24'

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -12,26 +12,26 @@ jobs:
build-and-test:
strategy:
matrix:
# Oldest supported version is 1.18, plus the latest two releases.
go-version: ['1.18', '1.22', '1.23']
os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, macos-14, windows-2019, windows-2022]
# Latest two supported releases.
go-version: ['1.23', '1.24']
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-13, macos-14, macos-15, windows-2019, windows-2022]
runs-on: ${{ matrix.os }}

steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.0.2
with:
go-version: ${{ matrix.go-version }}

- name: Check out code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Check formatting
if: ${{ matrix.go-version == '1.23' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.go-version == '1.24' && matrix.os == 'ubuntu-24.04' }}
run: diff -u <(echo -n) <(gofmt -d .)

- name: Check Go modules
if: ${{ matrix.go-version == '1.23' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.go-version == '1.24' && matrix.os == 'ubuntu-24.04' }}
run: |
go mod tidy
git diff --exit-code
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/tklauser/numcpus

go 1.18
go 1.23.0

require golang.org/x/sys v0.25.0
require golang.org/x/sys v0.31.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=