Repository navigation
chore(build): vendor all crates for offline intranet builds - #6
Merged
Merged
Conversation
Replace crates.io with the local vendor/ directory via .cargo/config.toml (net.offline enabled) so cargo never touches the network. Protect vendored files inside debian/rules from dh_clean deletions and autotools-config rewrites, and build the Debian packages with --offline --locked and an isolated CARGO_HOME. 通过 .cargo/config.toml 将 crates.io 替换为本地 vendor/ 目录并开启 net.offline,构建过程完全不访问外网;debian/rules 中保护 vendored 文件不被 dh_clean 删除、不被 autotools 更新改写,Debian 打包改为 --offline --locked 并使用隔离的 CARGO_HOME。 Log: 改造为离线/内网构建,vendor 全部第三方依赖 Influence: 内网机器可直接 dpkg-buildpackage 离线打包;新增/升级依赖需 在有外网的机器执行 CARGO_NET_OFFLINE=false cargo vendor vendor 后同步 vendor/ 目录。
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
- update version to 0.4.2-1 log: update version to 0.4.2-1
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.
Replace crates.io with the local vendor/ directory via .cargo/config.toml (net.offline enabled) so cargo never touches the network. Protect vendored files inside debian/rules from dh_clean deletions and autotools-config rewrites, and build the Debian packages with --offline --locked and an isolated CARGO_HOME.
通过 .cargo/config.toml 将 crates.io 替换为本地 vendor/ 目录并开启 net.offline,构建过程完全不访问外网;debian/rules 中保护 vendored
文件不被 dh_clean 删除、不被 autotools 更新改写,Debian 打包改为
--offline --locked 并使用隔离的 CARGO_HOME。
Log: 改造为离线/内网构建,vendor 全部第三方依赖
Influence: 内网机器可直接 dpkg-buildpackage 离线打包;新增/升级依赖需 在有外网的机器执行 CARGO_NET_OFFLINE=false cargo vendor vendor 后同步 vendor/ 目录。