【发布时间】:2017-11-08 17:25:24
【问题描述】:
我想构建 Chromium 的最新稳定版本(62.0.3202.84 在撰写本文时,请参阅 OmahaProxy)。
build instructions 适用于当前的开发版本。
来自this question、Brave wiki 和其他一些来源,获取和构建特定版本的说明似乎很清楚:
git fetch origin 62.0.3202.84
git checkout -b my_stable_branch FETCH_HEAD
# hooks and dependencies if needed, commits, compilation...
但是,这不似乎对我有用。当我为FETCH_HEAD 创建一个分支时,一个快速的git log 显示我有来自master 的最新提交。
我误会了什么?
编辑:
如果我从master 执行the steps from Asesh's answer,它会“成功”运行,但我最终还是会构建master,而不是我想要的。
如果我首先从特定标记(如 the Chromium documentation 中指定)创建分支,例如 62.0.3202.84,或者即使我只是在没有分支的情况下检查它,gclient sync --with_branch_heads 也会出现以下错误:
Error: Command 'git checkout --quiet 6e4c388c0117fe408b66fbede91081fb1018c5fe' returned non-zero exit status 128 in /path/to/chromium/src/media/cdm/api
fatal: reference is not a tree: 6e4c388c0117fe408b66fbede91081fb1018c5fe
【问题讨论】:
-
我偷看了
gclient的代码;我得到的错误可能与代码的特定版本(即 3202)有关。
标签: git chromium ninja gclient