Skip to content

fix: add GOPROXY=direct to xportal build commands#5

Merged
pcfreak30 merged 2 commits intodevelopfrom
bypass-cache
Mar 7, 2026
Merged

fix: add GOPROXY=direct to xportal build commands#5
pcfreak30 merged 2 commits intodevelopfrom
bypass-cache

Conversation

@pcfreak30
Copy link
Member

@pcfreak30 pcfreak30 commented Mar 7, 2026

This pull request modifies the build-portal.sh script to ensure xportal build commands fetch Go modules directly from source rather than through the Go module proxy.

Key Changes:

  1. Added GOPROXY=direct environment variable: Introduced a run_xportal() helper function that sets GOPROXY=direct when executing xportal build. This forces Go to bypass the module proxy cache and fetch dependencies directly from their source repositories (e.g., GitHub), ensuring the latest versions are used and avoiding potential stale cache issues.

  2. Refactored build logic: Consolidated the previously duplicated xportal build invocation patterns (handling optional output directories and plugin arguments) into a single call through the run_xportal helper. This eliminates repetitive environment variable exports and reduces code duplication while maintaining the same functionality for building with or without plugins and custom output paths.

Functional Impact:

  • Resolves potential build failures or outdated dependency issues caused by cached module proxies
  • Simplifies maintenance by centralizing the xportal execution configuration
  • No breaking changes to the build output or command-line interface behavior

@kody-ai

This comment has been minimized.

@kody-ai
Copy link

kody-ai bot commented Mar 7, 2026

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Cross File
Business Logic

Access your configuration settings here.

@pcfreak30 pcfreak30 merged commit b1eb49f into develop Mar 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant