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
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@ closed product, will not carry.

## Using it

The module path is deliberately **unchanged**. This repository still declares
`module github.com/minio/pkg/v3`, so every `import "github.com/minio/pkg/v3/..."`
keeps working and the fork stays a drop-in replacement. Only the right-hand side
of each `replace` directive names the maintained repository:
Import it directly. This repository declares `module github.com/pgsty/silo-pkg/v3`,
so a consumer requires it by name and needs no `replace` directive:

```go
replace (
github.com/minio/pkg/v3 => github.com/pgsty/silo-pkg/v3 v3.12.2
github.com/minio/minio-go/v7 => github.com/pgsty/silo-go/v7 v7.3.1
)
require github.com/pgsty/silo-pkg/v3 v3.13.0
```

The second replacement selects the Silo Go SDK used by this package. Go does
not inherit `replace` directives from dependency modules, so top-level
consumers that want the complete maintained stack must declare both
replacements in their own `go.mod`.
```go
import "github.com/pgsty/silo-pkg/v3/policy"
```

The `/v3` suffix is required — it is the module's major version, not a directory.

Through v3.12.2 the module kept upstream's `github.com/minio/pkg/v3` path and was
selected with a `replace` directive. That worked, but Go does not inherit `replace`
directives from dependency modules, so every consumer had to repeat the redirect,
and the `require` line had to name an upstream version this fork's source no longer
matched. v3.13.0 owns its path instead. Consumers still on the old arrangement keep
building against the versions they already pinned; to move, drop the `replace`,
require this path, and rewrite the imports.

The repository was renamed from `pgsty/minio-pkg` on 2026-08-02. GitHub redirects
the old path, but pin the new one.

Expand Down
2 changes: 1 addition & 1 deletion certs/certs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

"github.com/minio/pkg/v3/certs"
"github.com/pgsty/silo-pkg/v3/certs"
)

func updateCerts(crt, key string) {
Expand Down
2 changes: 1 addition & 1 deletion certs/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"sync"
"time"

"github.com/minio/pkg/v3/env"
"github.com/pgsty/silo-pkg/v3/env"
"github.com/rjeczalik/notify"
)

Expand Down
2 changes: 1 addition & 1 deletion cors/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"net/http"
"strings"

"github.com/minio/pkg/v3/wildcard"
"github.com/pgsty/silo-pkg/v3/wildcard"
)

const defaultXMLNS = "http://s3.amazonaws.com/doc/2006-03-01/"
Expand Down
9 changes: 2 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
module github.com/minio/pkg/v3
module github.com/pgsty/silo-pkg/v3

// Keep one prior Go release available to library consumers while building and
// testing the maintained branch with the current toolchain.
go 1.26.0

toolchain go1.27.0

// Use PGSTY's maintained Silo Go SDK while preserving upstream import paths.
// Keep the required version on a real upstream tag because replace directives
// are ignored when this module is consumed as a dependency.
replace github.com/minio/minio-go/v7 => github.com/pgsty/silo-go/v7 v7.3.1

// v22.7.0 does not compile on NetBSD because its unix implementation uses
// CLOCK_MONOTONIC, which is unavailable there. Keep the last portable release
// until go-systemd ships the upstream fix.
Expand All @@ -27,7 +22,7 @@ require (
github.com/lestrrat-go/jwx/v3 v3.0.13
github.com/mattn/go-colorable v0.1.15
github.com/mattn/go-isatty v0.0.24
github.com/minio/minio-go/v7 v7.3.0
github.com/minio/minio-go/v7 v7.3.1-0.20260828014306-0e78d3f18efe
github.com/minio/mux v1.9.2
github.com/rjeczalik/notify v0.9.3
github.com/tinylib/msgp v1.6.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ github.com/mattn/go-runewidth v0.0.23 h1:7ykA0T0jkPpzSvMS5i9uoNn2Xy3R383f9HDx3Ry
github.com/mattn/go-runewidth v0.0.23/go.mod h1:XBkDxAl56ILZc9knddidhrOlY5R/pDhgLpndooCuJAs=
github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34=
github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM=
github.com/minio/minio-go/v7 v7.3.1-0.20260828014306-0e78d3f18efe h1:By2FKNSOUGLOeb0x4D7xJMHr8x/X1ZW8PG780SpKUwQ=
github.com/minio/minio-go/v7 v7.3.1-0.20260828014306-0e78d3f18efe/go.mod h1:KUPWdecEO1LWyUz+sTGXAuf2jZHrPh5fCsRH86QbPfk=
github.com/minio/mux v1.9.2 h1:dQchne49BUBgOlxIHjx5wVe1gl5VXF2sxd4YCXkikTw=
github.com/minio/mux v1.9.2/go.mod h1:OuHAsZsux+e562bcO2P3Zv/P0LMo6fPQ310SmoyG7mQ=
github.com/pgsty/silo-go/v7 v7.3.1 h1:CchXB5hdv1KGUCGBzR5Tz8hSE+3P9sGJFPY+ku8tC04=
github.com/pgsty/silo-go/v7 v7.3.1/go.mod h1:3uUcXVLE1xLBTy+A/js/hHKkvcYQ/zMbj8rbtNQavxE=
github.com/philhofer/fwd v1.2.0 h1:e6DnBTl7vGY+Gz322/ASL4Gyp1FspeMvx1RNDoToZuM=
github.com/philhofer/fwd v1.2.0/go.mod h1:RqIHx9QI14HlwKwm98g9Re5prTQ6LdeRQn+gXJFxsJM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand Down
4 changes: 2 additions & 2 deletions policy/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
package policy

import (
"github.com/minio/pkg/v3/policy/condition"
"github.com/minio/pkg/v3/wildcard"
"github.com/pgsty/silo-pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/wildcard"
)

// Action - policy action.
Expand Down
4 changes: 2 additions & 2 deletions policy/admin-action.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
package policy

import (
"github.com/minio/pkg/v3/policy/condition"
"github.com/minio/pkg/v3/wildcard"
"github.com/pgsty/silo-pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/wildcard"
)

// AdminAction - admin policy action.
Expand Down
2 changes: 1 addition & 1 deletion policy/bucket-policy-statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package policy
import (
"strings"

"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

// BPStatement - policy statement.
Expand Down
2 changes: 1 addition & 1 deletion policy/bucket-policy-statement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"reflect"
"testing"

"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

func TestBPStatementIsAllowed(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion policy/bucket-policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"reflect"
"testing"

"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

func TestBucketPolicyIsAllowed(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion policy/condition/stringfunc.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/minio/minio-go/v7/pkg/s3utils"
"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/pkg/v3/wildcard"
"github.com/pgsty/silo-pkg/v3/wildcard"
)

func substitute(values map[string][]string) func(string) string {
Expand Down
2 changes: 1 addition & 1 deletion policy/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package policy

import (
"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

// Policy claim constants
Expand Down
2 changes: 1 addition & 1 deletion policy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"sync"

"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/pkg/v3/wildcard"
"github.com/pgsty/silo-pkg/v3/wildcard"
)

// DefaultVersion - default policy version as per AWS S3 specification.
Expand Down
2 changes: 1 addition & 1 deletion policy/policy_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strconv"
"testing"

"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

func setupPolicy(statements []Statement) Policy {
Expand Down
2 changes: 1 addition & 1 deletion policy/policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"time"

"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

func TestGetPoliciesFromClaims(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion policy/principal.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"encoding/json"

"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/pkg/v3/wildcard"
"github.com/pgsty/silo-pkg/v3/wildcard"
)

// Principal - policy principal.
Expand Down
4 changes: 2 additions & 2 deletions policy/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"path"
"strings"

"github.com/minio/pkg/v3/policy/condition"
"github.com/minio/pkg/v3/wildcard"
"github.com/pgsty/silo-pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/wildcard"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion policy/statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"sync"
"sync/atomic"

"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
"github.com/zeebo/xxh3"
)

Expand Down
2 changes: 1 addition & 1 deletion policy/statement_bucketmutation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package policy
import (
"testing"

"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

// sensitiveBucketMutationTestActions mirrors sensitiveBucketMutationActions so
Expand Down
2 changes: 1 addition & 1 deletion policy/statement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"reflect"
"testing"

"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

func TestStatementIsAllowed(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion policy/sts-action.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package policy

import (
"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

// STSAction - STS policy action.
Expand Down
2 changes: 1 addition & 1 deletion policy/table-action.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package policy

import (
"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

// TableAction - S3 Tables policy action.
Expand Down
2 changes: 1 addition & 1 deletion policy/vectors-action.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package policy

import (
"github.com/minio/pkg/v3/policy/condition"
"github.com/pgsty/silo-pkg/v3/policy/condition"
)

// VectorsAction - S3 Vectors policy action.
Expand Down
2 changes: 1 addition & 1 deletion quick/quick.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"sync"

"github.com/fatih/structs"
"github.com/minio/pkg/v3/safe"
"github.com/pgsty/silo-pkg/v3/safe"
etcd "go.etcd.io/etcd/client/v3"
)

Expand Down
2 changes: 1 addition & 1 deletion randreader/randreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"math/rand"
"time"

"github.com/minio/pkg/v3/rng"
"github.com/pgsty/silo-pkg/v3/rng"
)

// New returns an infinite reader that will return pseudo-random data.
Expand Down
2 changes: 1 addition & 1 deletion subnet/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"time"

"github.com/lestrrat-go/jwx/v3/jwt"
"github.com/minio/pkg/v3/licverifier"
"github.com/pgsty/silo-pkg/v3/licverifier"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion sys/cgroup/linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
)

// DO NOT EDIT following constants are chosen defaults for any kernel
// after 3.x, please open a GitHub issue https://github.com/minio/pkg/issues
// after 3.x, please open a GitHub issue https://github.com/pgsty/silo-pkg/issues
// and discuss first if you wish to change this.
const (
// Default string for looking for kernel memory param.
Expand Down
2 changes: 1 addition & 1 deletion sys/stats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"os"
"syscall"

"github.com/minio/pkg/v3/sys/cgroup"
"github.com/pgsty/silo-pkg/v3/sys/cgroup"
)

// Get the final system memory limit chosen by the user.
Expand Down
2 changes: 1 addition & 1 deletion sys/stats_linux_32bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"os"
"syscall"

"github.com/minio/pkg/v3/sys/cgroup"
"github.com/pgsty/silo-pkg/v3/sys/cgroup"
)

// Get the final system memory limit chosen by the user.
Expand Down