Commit 9c97ad9
authored
fix(deps): Update module github.com/adrg/xdg to v0.5.3 (#259)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/adrg/xdg](https://togithub.com/adrg/xdg) | require | minor | `v0.4.0` -> `v0.5.3` |
---
### Release Notes
<details>
<summary>adrg/xdg (github.com/adrg/xdg)</summary>
### [`v0.5.3`](https://togithub.com/adrg/xdg/releases/tag/v0.5.3)
[Compare Source](https://togithub.com/adrg/xdg/compare/v0.5.2...v0.5.3)
##### Changelog
- Updated `xdg.SearchRuntimeFile` to also look in the operating system's temporary directory for runtime files.
This covers unlikely cases in which runtime files cannot be written relative to the base runtime directory either because it does not exist or it is not accessible, so `xdg.RuntimeFile` suggests the operating system's temporary directory as a suitable fallback location.
##### Internal
- Improved package testing.
### [`v0.5.2`](https://togithub.com/adrg/xdg/releases/tag/v0.5.2)
[Compare Source](https://togithub.com/adrg/xdg/compare/v0.5.1...v0.5.2)
##### Changelog
- Updated logic of `xdg.RuntimeFile`: due to the special nature of the `runtime directory`, the function no longer attempts to create it if it does not exist. If that's the case, the function uses the operating system's `temporary directory` as a fallback. The function still creates subdirectories relative to the base runtime directory or its fallback.
Justification: the creation of the runtime directory is not in the scope of this package as it has special requirements defined by the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/latest). Relevant excerpt:
> The lifetime of the directory MUST be bound to the user being logged in. It MUST be created when the user first logs in and if the user fully logs out the directory MUST be removed. If the user logs in more than once they should get pointed to the same directory, and it is mandatory that the directory continues to exist from their first login to their last logout on the system, and not removed in between. Files in the directory MUST not survive reboot or a full logout/login cycle.
Also, on `Linux`, the parent directories of the default user runtime directory are owned by the root user so they cannot be created by a regular user. [pam_systemd](https://www.freedesktop.org/software/systemd/man/latest/pam_systemd.html) is usually responsible for creating the runtime directory (`/run/user/$UID`).
### [`v0.5.1`](https://togithub.com/adrg/xdg/releases/tag/v0.5.1)
[Compare Source](https://togithub.com/adrg/xdg/compare/v0.5.0...v0.5.1)
##### Changelog
- Added support for the non-standard `XDG_BIN_HOME` base directory.
See [XDG base directories](https://togithub.com/adrg/xdg?tab=readme-ov-file#xdg-base-directory) README section for more details.
- Added more config and data search locations on `macOS`.
- Added `~/.config` at the end of the list of default locations for `XDG_CONFIG_DIRS`.
- Added `~/.local/share` at the end of the list of default locations for `XDG_DATA_DIRS`.
- Added more application search locations on `Windows`:
- `%ProgramFiles%`
- `%ProgramFiles%\Common Files`
- `%LOCALAPPDATA%\Programs`
- `%LOCALAPPDATA%\Programs\Common`
##### Internal
- Updated `golang.org/x/sys` dependency to the latest version.
- Improved package testing.
### [`v0.5.0`](https://togithub.com/adrg/xdg/releases/tag/v0.5.0)
[Compare Source](https://togithub.com/adrg/xdg/compare/v0.4.0...v0.5.0)
##### Changelog
- `user-dirs.dirs` config file is now parsed on Unix-like operating systems (except for macOS and Plan 9).
See [XDG user directories](https://togithub.com/adrg/xdg?tab=readme-ov-file#xdg-user-directories) README section for more details.
- Updated `golang.org/x/sys` dependency to the latest version.
##### Internal
- Moved all path related functionality in internal `pathutil` package.
- Added internal `userdirs` package:
- Moved `xdg.UserDirectories` to `userdirs.Directories`.
- Added parsing functions for `user-dirs.dirs` config file.
- Improved package testing.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWVyZ2UiXX0=-->1 parent f0e0eb6 commit 9c97ad9
2 files changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
47 | 44 | | |
48 | 45 | | |
0 commit comments