Repository navigation
fix(build): use Huawei registry for packaged OpenClaw resources - #374
Merged
Angnuo (angnuoli) merged 1 commit intoNov 12, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
9 of 17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix packaged OpenClaw resource preparation in
build.ps1when a machine-wide npm proxy lacks the pinned release and returns ETARGET. Default this resource acquisition to the Huawei npm registry without changing ordinary dependency installation or the pinned OpenClaw target.Related Issue
N/A — reported build failure; no linked issue.
Changes
MICROCLAW_NPM_REGISTRY>MSIX_NPM_REGISTRY>https://repo.huaweicloud.com/repository/npm/only around Step 1's existingprepare-packaged-resourcescall..npmrc, or user/global configuration.Type of Change
Testing
cd desktop && npm run test)cd desktop/renderer && npm run test)cd desktop && npm run build)Focused checks passed on the submitted content; the full-suite/build items above were not run:
python -m unittest discover -s tests -p test_build_resource_registry.py -v— before the fix, 5 expected failing assertions reproduced missing registry propagation/diagnostics; after the fix, all 5 tests passed.python -m unittest discover -s tests -p 'test_build*.py' -v— passed, 51 tests, including build-script PowerShell parsing.npm --prefix .\desktop run test:prepared-resources— passed, 19 tests, including exact target, engine policy, resource integrity, and publication checks.python -c "import shutil, sys, unittest; sys.path.insert(0, 'tests'); import test_build_resource_registry as checks; checks.POWERSHELL = shutil.which('powershell'); unittest.main(module=checks, verbosity=2)"— passed, 5 tests on Windows PowerShell 5.1; the normal build test run uses PowerShell 7.python -m ruff check .\tests\test_build_resource_registry.py— passed with session-isolated Ruff 0.16.3.python -m ruff format --check .\tests\test_build_resource_registry.py— passed with session-isolated Ruff 0.16.3.git diff --checkandgit diff --cached --check— passed.The new harness executes the actual dependency/resource stage snippets with a real child-process environment probe instead of downloading or packaging OpenClaw. Real OpenClaw acquisition and the complete native/installer packaging pipeline were not run locally; this PR does not claim end-to-end build success. No manual full-build test was performed.
Checklist