Remove standalone.gclient

Use `scripts/standalone.gclient` instead.

Bug: dawn:1339
Change-Id: Id702d42d104a0f6951973792389f897a6bdf4b10
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86069
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2022-04-07 19:28:44 +00:00 committed by Dawn LUCI CQ
parent 17393c1535
commit afbe161cd4
6 changed files with 5 additions and 17 deletions

View File

@ -85,7 +85,7 @@ git clone https://dawn.googlesource.com/tint tint
cd tint
# Bootstrap the gclient configuration
cp standalone.gclient .gclient
cp scripts/standalone.gclient .gclient
# Fetch external dependencies and toolchains with gclient
gclient sync

View File

@ -32,7 +32,7 @@ git clone https://dawn.googlesource.com/tint tint
cd tint
# Bootstrap the gclient configuration
cp standalone.gclient .gclient
cp scripts/standalone.gclient .gclient
# Fetch external dependencies and toolchains with gclient
gclient sync

View File

@ -87,7 +87,7 @@ cd ${SRC_DIR}
git clone ${CLONE_SRC_DIR} .
status "Fetching dependencies"
cp standalone.gclient .gclient
cp scripts/standalone.gclient .gclient
with_retry gclient sync
status "Linting"

View File

@ -108,7 +108,7 @@ call git clone %ORIGINAL_SRC_DIR% . || goto :error
call :status "Fetching dependencies"
@echo on
copy standalone.gclient .gclient || goto :error
copy scripts\standalone.gclient .gclient || goto :error
call gclient sync || goto :error
@echo off

View File

@ -1,12 +0,0 @@
# Copy this file to <tint clone dir>/.gclient to bootstrap gclient in a
# standalone checkout of Tint.
solutions = [
{ "name" : ".",
"url" : "https://dawn.googlesource.com/tint",
"deps_file" : "DEPS",
"managed" : False,
"custom_deps": {
},
},
]

View File

@ -527,7 +527,7 @@ System: %+v`, path, res.System, e.system)
func (e env) fetchTintDeps() error {
gclientConfig := filepath.Join(e.tintDir, ".gclient")
if _, err := os.Stat(gclientConfig); errors.Is(err, os.ErrNotExist) {
standalone := filepath.Join(e.tintDir, "standalone.gclient")
standalone := filepath.Join(e.tintDir, "scripts", "standalone.gclient")
if err := copyFile(gclientConfig, standalone); err != nil {
return fmt.Errorf("failed to copy '%v' to '%v':\n %w", standalone, gclientConfig, err)
}