Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package direnv for openSUSE:Factory checked in at 2025-10-30 17:09:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/direnv (Old) and /work/SRC/openSUSE:Factory/.direnv.new.1980 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "direnv" Thu Oct 30 17:09:56 2025 rev:20 rq:1314455 version:2.37.1 Changes: -------- --- /work/SRC/openSUSE:Factory/direnv/direnv.changes 2025-05-07 19:18:19.707863858 +0200 +++ /work/SRC/openSUSE:Factory/.direnv.new.1980/direnv.changes 2025-10-30 17:10:40.632809054 +0100 @@ -1,0 +2,18 @@ +Wed Oct 29 17:39:29 UTC 2025 - Avindra Goolcharan <[email protected]> + +- update to 2.37.1: + * fix: regression in displaying export errors (#1469) +- includes 2.37.0: + * docs: document sub-commands + * docs: fix link to guix manual (#1421) + * feat(direnv export gha): strengthen export format + * fix(python): do not include patch level in virtual environment names (#1423) + * fix(use_nix): always restore special variables (#1424) + * fix: accept true as valid DIRENV_DEBUG value (#1365) + * fix: add trailing newline to error messages (#1426) + * fix: delete duplicate ansi escape code + * fix(powershell): "export pwsh" to resolve PowerShell special + character issues (#1448) +- rebase resolve-bin-path.patch + +------------------------------------------------------------------- Old: ---- direnv-2.36.0.tar.gz New: ---- direnv-2.37.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ direnv.spec ++++++ --- /var/tmp/diff_new_pack.XdtczP/_old 2025-10-30 17:10:41.516846310 +0100 +++ /var/tmp/diff_new_pack.XdtczP/_new 2025-10-30 17:10:41.520846479 +0100 @@ -1,7 +1,7 @@ # # spec file for package direnv # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define gopackagepath github.com/direnv/direnv Name: direnv -Version: 2.36.0 +Version: 2.37.1 Release: 0 Summary: Environment switcher for shells License: MIT ++++++ direnv-2.36.0.tar.gz -> direnv-2.37.1.tar.gz ++++++ ++++ 3295 lines of diff (skipped) ++++++ resolve-bin-path.patch ++++++ --- /var/tmp/diff_new_pack.XdtczP/_old 2025-10-30 17:10:41.868861145 +0100 +++ /var/tmp/diff_new_pack.XdtczP/_new 2025-10-30 17:10:41.876861482 +0100 @@ -13,5 +13,5 @@ + selfPath := `/usr/bin/direnv` // Convert Windows path if needed - selfPath = strings.Replace(selfPath, "\\", "/", -1) + selfPath = strings.ReplaceAll(selfPath, "\\", "/") ++++++ vendor.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/golang.org/x/mod/semver/semver.go new/vendor/golang.org/x/mod/semver/semver.go --- old/vendor/golang.org/x/mod/semver/semver.go 2025-04-11 10:46:26.000000000 +0200 +++ new/vendor/golang.org/x/mod/semver/semver.go 2025-07-20 12:23:29.000000000 +0200 @@ -22,7 +22,10 @@ // as shorthands for vMAJOR.0.0 and vMAJOR.MINOR.0. package semver -import "sort" +import ( + "slices" + "strings" +) // parsed returns the parsed form of a semantic version string. type parsed struct { @@ -154,19 +157,22 @@ // ByVersion implements [sort.Interface] for sorting semantic version strings. type ByVersion []string -func (vs ByVersion) Len() int { return len(vs) } -func (vs ByVersion) Swap(i, j int) { vs[i], vs[j] = vs[j], vs[i] } -func (vs ByVersion) Less(i, j int) bool { - cmp := Compare(vs[i], vs[j]) - if cmp != 0 { - return cmp < 0 - } - return vs[i] < vs[j] -} +func (vs ByVersion) Len() int { return len(vs) } +func (vs ByVersion) Swap(i, j int) { vs[i], vs[j] = vs[j], vs[i] } +func (vs ByVersion) Less(i, j int) bool { return compareVersion(vs[i], vs[j]) < 0 } -// Sort sorts a list of semantic version strings using [ByVersion]. +// Sort sorts a list of semantic version strings using [Compare] and falls back +// to use [strings.Compare] if both versions are considered equal. func Sort(list []string) { - sort.Sort(ByVersion(list)) + slices.SortFunc(list, compareVersion) +} + +func compareVersion(a, b string) int { + cmp := Compare(a, b) + if cmp != 0 { + return cmp + } + return strings.Compare(a, b) } func parse(v string) (p parsed, ok bool) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/modules.txt new/vendor/modules.txt --- old/vendor/modules.txt 2025-04-11 10:46:26.000000000 +0200 +++ new/vendor/modules.txt 2025-07-20 12:23:29.000000000 +0200 @@ -5,7 +5,7 @@ # github.com/mattn/go-isatty v0.0.20 ## explicit; go 1.15 github.com/mattn/go-isatty -# golang.org/x/mod v0.24.0 +# golang.org/x/mod v0.25.0 ## explicit; go 1.23.0 golang.org/x/mod/semver # golang.org/x/sys v0.30.0
