Skip to content

Commit

Permalink
fix(github): change v4 to v4 in github actions and README
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed May 31, 2024
1 parent aca0ba4 commit 9d35f6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run: |
versions=$(curl -s 'https://go.dev/dl/?mode=json' | jq -c 'map(.version[2:])')
echo "::set-output name=value::${versions}"
build_test_v3:
build_test:
needs: go-versions
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ macos_test:
init_tools:
go get github.com/golang/dep/cmd/dep

TAG=$(shell date +'v3.%y.%-m' --date='last Month')
TAG=$(shell date +'v4.%y.%-m' --date='last Month')

release:
git tag $(TAG)
Expand Down
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ challenge is porting all psutil functions on some architectures.

See v4 release note.

### v3 migration

From v3.20.10, gopsutil becomes v3 which breaks backwards compatibility.
See [v3Changes.md](_tools/v3migration/v3Changes.md) for more detailed changes.

## Tag semantics

gopsutil tag policy is almost same as Semantic Versioning, but
Expand All @@ -39,16 +34,14 @@ can be skipped.
- Windows i386/amd64/arm/arm64
- Darwin amd64/arm64
- OpenBSD i386/amd64/armv7/arm64/riscv64 (Thank you @mpfz0r!)
- Solaris amd64 (developed and tested on SmartOS/Illumos, Thank you
@jen20!)
- Solaris amd64 (developed and tested on SmartOS/Illumos, Thank you @jen20!)

These have partial support:

- CPU on DragonFly BSD (#893, Thank you @gballet!)
- host on Linux RISC-V (#896, Thank you @tklauser!)

All works are implemented without cgo by porting C structs to golang
structs.
All works are implemented without cgo by porting C structs to golang structs.

## Usage

Expand All @@ -59,7 +52,6 @@ import (
"fmt"

"github.com/shirou/gopsutil/v4/mem"
// "github.com/shirou/gopsutil/mem" // to use v2
)

func main() {
Expand Down Expand Up @@ -328,5 +320,4 @@ I have been influenced by the following great works:
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request

English is not my native language, so PRs correcting grammar or spelling
are welcome and appreciated.
English is not my native language, so PRs correcting grammar or spelling are welcome and appreciated.

0 comments on commit 9d35f6e

Please sign in to comment.