prometheus: 3.11.3 → 3.12.0

Drop fstype test patch.
This commit is contained in:
Jonathan Davies
2026-06-10 15:30:03 +01:00
parent 0c30811116
commit d1d438c8dd
3 changed files with 4 additions and 33 deletions
-4
View File
@@ -94,10 +94,6 @@ buildGoModule (finalAttrs: {
proxyVendor = true;
patches = [
./prometheus-pr18519-fix-TestFsType.patch
];
outputs = [
"out"
"doc"
@@ -1,25 +0,0 @@
--- a/util/runtime/statfs_unix_test.go
+++ b/util/runtime/statfs_unix_test.go
@@ -19,20 +19,18 @@ import (
"os"
"testing"
- "github.com/grafana/regexp"
"github.com/stretchr/testify/require"
)
-var regexpFsType = regexp.MustCompile("^[A-Z][A-Z0-9_]*_MAGIC$")
-
func TestFsType(t *testing.T) {
var fsType string
path, err := os.Getwd()
require.NoError(t, err)
+ // A real path must yield a non-zero filesystem type.
fsType = FsType(path)
- require.Regexp(t, regexpFsType, fsType)
+ require.NotEqual(t, "0", fsType)
fsType = FsType("/no/where/to/be/found")
require.Equal(t, "0", fsType)
+4 -4
View File
@@ -1,6 +1,6 @@
{
version = "3.11.3";
hash = "sha256-JmnVTVW6LsrdiQspKznksyhAYkmCXQcqCLK8q5nZI48=";
npmDepsHash = "sha256-6uE8d3+v5wobSyCl8oYlbNQZjRj/WtvVrpzo/PR2hQA=";
vendorHash = "sha256-wR1b5jV/2B50OeKokv8Ss+tpSXNjJBsLIZrK7gOb168=";
version = "3.12.0";
hash = "sha256-xeENUVmG9tbIF+7i2u9zuvo7RXI9iNWFVDNUfNpF6/4=";
npmDepsHash = "sha256-cHMI5DqSRpIanrgk/H3aFUHLrGXH1v796PH1qDrCnbE=";
vendorHash = "sha256-caSI9uzbH93j06sJus9jSqo6qHKbP8D9DuDkiAlnfF4=";
}