Skip to content

Commit b0e1b6a

Browse files
committed
Don’t use absolute paths as they can change between CI stages
1 parent 96d0db0 commit b0e1b6a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dawn/archive_builder.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def write_target_manifest(
2424
manifest_file: Path to the manifest file to write
2525
target_config: Target configuration containing build settings
2626
"""
27-
build_dir = pathlib.Path("builds").resolve()
27+
build_dir = pathlib.Path("builds")
2828
target_dir = build_dir / str(target_config) / "install"
2929
manifest = {
3030
"targetName": str(target_config),
@@ -59,7 +59,7 @@ def write_bundle_manifest(version: str) -> None:
5959
Args:
6060
version: Version string for the bundle
6161
"""
62-
archive_dir = pathlib.Path("dist").resolve() / "dawn_webgpu.artifactbundle"
62+
archive_dir = pathlib.Path("dist") / "dawn_webgpu.artifactbundle"
6363
archive_dir.mkdir(exist_ok=True, parents=True)
6464
archive_manifest_file = archive_dir / "info.json"
6565

@@ -95,7 +95,7 @@ def build_bundle_target(target_config: TargetConfig) -> None:
9595
target_config: Target configuration for the build
9696
"""
9797
dawn_path = dawn_source.get_dawn_path()
98-
build_dir = pathlib.Path("builds").resolve()
98+
build_dir = pathlib.Path("builds")
9999

100100
target_name = str(target_config)
101101
target_dir = build_dir / target_name / "install"
@@ -158,7 +158,7 @@ def create_artifact_bundle(version: str, archive_name: str) -> pathlib.Path:
158158
dawn_version_file.write_text(json.dumps(version_data, indent=2))
159159

160160
# Create the archive
161-
archive_path = pathlib.Path("dist").resolve() / f"{archive_name}"
161+
archive_path = pathlib.Path("dist") / f"{archive_name}"
162162

163163
# Remove the archive if it exists (from shutil.make_archive)
164164
if archive_path.exists():
@@ -178,7 +178,7 @@ def dist_directory() -> pathlib.Path:
178178
Returns:
179179
Path to the dist directory
180180
"""
181-
return pathlib.Path("dist").resolve()
181+
return pathlib.Path("dist")
182182

183183

184184
def artifact_bundle_directory() -> pathlib.Path:
@@ -195,7 +195,7 @@ def remove_build_directory() -> None:
195195
"""
196196
Remove the build directory and all its contents.
197197
"""
198-
build_dir = pathlib.Path("builds").resolve()
198+
build_dir = pathlib.Path("builds")
199199
if build_dir.exists():
200200
shutil.rmtree(build_dir)
201201

@@ -216,4 +216,4 @@ def manifests_dir() -> pathlib.Path:
216216
Returns:
217217
Path to the manifests directory
218218
"""
219-
return pathlib.Path("builds").resolve() / "manifest"
219+
return pathlib.Path("builds") / "manifest"

0 commit comments

Comments
 (0)