From 6d75696d11aab547bb34ea22ec10fcdc594e5a44 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 30 Mar 2026 13:58:14 +0200 Subject: hub s3 hydrate improvements (#902) - Feature: Added `--hub-hydration-target-config` option to specify the hydration target via a JSON config file (mutually exclusive with `--hub-hydration-target-spec`); supports `file` and `s3` types with structured settings ```json { "type": "file", "settings": { "path": "/path/to/hydration/storage" } } ``` ```json { "type": "s3", "settings": { "uri": "s3://bucket[/prefix]", "region": "us-east-1", "endpoint": "http://localhost:9000", "path-style": true } } ``` - Improvement: Hub hydration dehydration skips the `.sentry-native` directory - Bugfix: Fixed `MakeSafeAbsolutePathInPlace` when a UNC prefix is present but path uses mixed delimiters --- src/zencore/filesystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zencore/filesystem.cpp') diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp index 0d361801f..416312cae 100644 --- a/src/zencore/filesystem.cpp +++ b/src/zencore/filesystem.cpp @@ -3275,11 +3275,11 @@ MakeSafeAbsolutePathInPlace(std::filesystem::path& Path) { if (!Path.empty()) { - std::filesystem::path AbsolutePath = std::filesystem::absolute(Path).make_preferred(); + Path = std::filesystem::absolute(Path).make_preferred(); #if ZEN_PLATFORM_WINDOWS const std::string_view Prefix = "\\\\?\\"; const std::u8string PrefixU8(Prefix.begin(), Prefix.end()); - std::u8string PathString = AbsolutePath.u8string(); + std::u8string PathString = Path.u8string(); if (!PathString.empty() && !PathString.starts_with(PrefixU8)) { PathString.insert(0, PrefixU8); -- cgit v1.2.3