fix(ci): enable libsodium pkg-config feature across all platforms #104
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sarman/tftsr-devops_investigation#104
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/libsodium-use-pkg-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Explicitly adds libsodium-sys-stable dependency with use-pkg-config
feature to ensure builds use system libsodium via pkg-config instead
of attempting vendored builds.
Changes:
This resolves "libsodium not found via pkg-config or vcpkg" build
failures on Linux and Windows CI targets.
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Automated PR Review (qwen3-coder-next via liteLLM):\n\nSummary
The PR changes enable libsodium pkg-config support across all platforms by adding
libsodium-sys-stablewith theuse-pkg-configfeature and updating the Windows CI configuration to usePKG_CONFIG_*environment variables instead ofSODIUM_*variables. This resolves build failures related to libsodium detection in CI. Review of the diff shows the changes are straightforward and consistent with the stated goals.Findings
[WARNING] .gitea/workflows/auto-tag.yml:470-472 - The PR removes
SODIUM_*environment variables but addsPKG_CONFIG_x86_64_pc_windows_gnuandPKG_CONFIG_ALLOW_CROSS. However, thePKG_CONFIG_ALLOW_CROSSvariable should also includeSODIUM_*removal in any other platform-specific build jobs. While the diff only shows this one job changed, the PR description states this change applies "across all platforms", so there may be other jobs that still useSODIUM_*variables.Evidence:
Fix: Confirm no other CI build jobs still use
SODIUM_*environment variables. If this job is the only one, the change is correct.[SUGGESTION] src-tauri/Cargo.toml:61 - While the change to use
libsodium-sys-stablewithuse-pkg-configis correct, theCargo.tomlfile does not include a comment explaining whylibsodium-sys-stablewas chosen overlibsodium-sysor other alternatives. This could help future maintainers understand the rationale.Evidence:
Fix: Add a brief comment explaining the choice (e.g.,
# use libsodium-sys-stable with pkg-config for consistent cross-platform builds).Verdict: APPROVE WITH COMMENTS
The changes are correct and address the stated build failures. The WARNING-level item should be verified (no other CI jobs using
SODIUM_*variables), and the suggestion for a comment is minor but could improve maintainability.Automated PR Review (qwen3-coder-next via liteLLM):\n\nSummary
The PR correctly enables libsodium pkg-config support by adding
libsodium-sys-stablewith theuse-pkg-configfeature and replacingSODIUM_*environment variables withPKG_CONFIG_*in the Windows cross-compilation job. All changes are consistent with the stated goal of fixing build failures across platforms. The code compiles and the CI configuration is properly updated.Findings
Verdict: APPROVE