Skip to content

Commit 3489a34

Browse files
authored
Merge pull request #1628 from shirou/release/v4
Release/v4
2 parents 4336530 + 9d35f6e commit 3489a34

File tree

253 files changed

+1187
-1171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+1187
-1171
lines changed

.github/labeler.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ package:net:
1414
- net/*
1515
package:process:
1616
- process/*
17+
package:sensors:
18+
- sensors/*
1719
package:winservices:
1820
- winservices/*
1921
os:linux:

.github/workflows/build_test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
run: |
1414
versions=$(curl -s 'https://go.dev/dl/?mode=json' | jq -c 'map(.version[2:])')
1515
echo "::set-output name=value::${versions}"
16-
build_test_v3:
16+
build_test:
1717
needs: go-versions
1818
strategy:
1919
fail-fast: false

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
run: |
1414
versions=$(curl -s 'https://go.dev/dl/?mode=json' | jq -c 'map(.version[2:])')
1515
echo "::set-output name=value::${versions}"
16-
test_v3_module:
16+
test:
1717
needs: go-versions
1818
strategy:
1919
fail-fast: false

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ macos_test:
8484
init_tools:
8585
go get github.com/golang/dep/cmd/dep
8686

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

8989
release:
9090
git tag $(TAG)

README.md

+12-15
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@
55
This is a port of psutil (https://github.com/giampaolo/psutil). The
66
challenge is porting all psutil functions on some architectures.
77

8-
## v3 migration
8+
## migration
99

10-
From v3.20.10, gopsutil becomes v3 which breaks backwards compatibility.
11-
See [v3Changes.md](_tools/v3migration/v3Changes.md) for more detailed changes.
10+
### v4 migration
11+
12+
See v4 release note.
1213

1314
## Tag semantics
1415

1516
gopsutil tag policy is almost same as Semantic Versioning, but
1617
automatically increases like [Ubuntu versioning](https://calver.org/).
1718

18-
For example, v2.17.04 means
19+
For example, v4.24.04 means
1920

20-
- v2: major version
21-
- 17: release year, 2017
21+
- v4: major version
22+
- 24: release year, 2024
2223
- 04: release month
2324

2425
gopsutil aims to keep backwards compatibility until major version change.
@@ -33,16 +34,14 @@ can be skipped.
3334
- Windows i386/amd64/arm/arm64
3435
- Darwin amd64/arm64
3536
- OpenBSD i386/amd64/armv7/arm64/riscv64 (Thank you @mpfz0r!)
36-
- Solaris amd64 (developed and tested on SmartOS/Illumos, Thank you
37-
@jen20!)
37+
- Solaris amd64 (developed and tested on SmartOS/Illumos, Thank you @jen20!)
3838

3939
These have partial support:
4040

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

44-
All works are implemented without cgo by porting C structs to golang
45-
structs.
44+
All works are implemented without cgo by porting C structs to golang structs.
4645

4746
## Usage
4847

@@ -52,8 +51,7 @@ package main
5251
import (
5352
"fmt"
5453

55-
"github.com/shirou/gopsutil/v3/mem"
56-
// "github.com/shirou/gopsutil/mem" // to use v2
54+
"github.com/shirou/gopsutil/v4/mem"
5755
)
5856

5957
func main() {
@@ -122,7 +120,7 @@ Be very careful that enabling the cache may cause inconsistencies. For example,
122120

123121
## Documentation
124122

125-
See https://pkg.go.dev/github.com/shirou/gopsutil/v3 or https://godocs.io/github.com/shirou/gopsutil/v3
123+
See https://pkg.go.dev/github.com/shirou/gopsutil/v4 or https://godocs.io/github.com/shirou/gopsutil/v4
126124

127125
## Requirements
128126

@@ -322,5 +320,4 @@ I have been influenced by the following great works:
322320
4. Push to the branch (git push origin my-new-feature)
323321
5. Create new Pull Request
324322

325-
English is not my native language, so PRs correcting grammar or spelling
326-
are welcome and appreciated.
323+
English is not my native language, so PRs correcting grammar or spelling are welcome and appreciated.

_tools/v3migration/v3Changes.md

-18
This file was deleted.

_tools/v3migration/v3migration.go

-106
This file was deleted.

0 commit comments

Comments
 (0)