aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/authutils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* GetEnvVariable: return std::optional<std::string> (#1017)Stefan Boberg2026-04-271-1/+1
| | | | | | | - `GetEnvVariable` now returns `std::optional<std::string>` so callers can distinguish an unset variable from one set to an empty value. - Windows path uses `SetLastError(ERROR_SUCCESS)` + `ERROR_ENVVAR_NOT_FOUND` to detect "not found"; POSIX path returns `nullopt` when `getenv` returns `nullptr`. - All call sites migrated. Most use `.value_or("")` to preserve current empty-or-unset behavior. The diagnostic helpers in `zen-test/artifactprovider-tests.cpp` now report `<unset>` vs `<empty>` distinctly. - Added a check in the `ExpandEnvironmentVariables` test confirming `nullopt` for an unset variable; PATH/HOME lookups in that test use `REQUIRE(has_value())` so a missing var fails cleanly instead of throwing `bad_optional_access`.
* Merge branch 'main' into lm/oidctoken-exe-pathLiam Mitchell2026-03-091-1/+1
|
* Use well-known OidcToken paths or command line arguments to determine ↵Liam Mitchell2026-01-141-0/+55
OidcToken executable path