Use internal mock host for release assets

This commit is contained in:
rcourtman
2025-11-12 21:23:01 +00:00
parent 8330e1ea05
commit accd1c642f
2 changed files with 2 additions and 1 deletions
@@ -9,6 +9,7 @@ services:
- "8080:8080"
environment:
- PORT=8080
- MOCK_BASE_URL=http://mock-github:8080
# Control test scenarios via environment variables
- MOCK_CHECKSUM_ERROR=${MOCK_CHECKSUM_ERROR:-false}
- MOCK_NETWORK_ERROR=${MOCK_NETWORK_ERROR:-false}
+1 -1
View File
@@ -107,7 +107,7 @@ func main() {
}
limiter := newRateLimiter()
baseURL := fmt.Sprintf("http://localhost:%s", port)
baseURL := getenvDefault("MOCK_BASE_URL", fmt.Sprintf("http://mock-github:%s", port))
// Environment-controlled behavior
checksumError := os.Getenv("MOCK_CHECKSUM_ERROR") == "true"