From 94a53cdb30e631ed972898a36bdb4b350b56d768 Mon Sep 17 00:00:00 2001 From: "trop[bot]" Date: Wed, 13 Feb 2019 12:10:54 -0500 Subject: [PATCH] build: ensure that the uploaded symbol path is correct for our symbol server (#16914) --- script/upload-symbols.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/upload-symbols.py b/script/upload-symbols.py index ca1a393339a..fb641754ccf 100755 --- a/script/upload-symbols.py +++ b/script/upload-symbols.py @@ -34,6 +34,11 @@ def main(): files = glob.glob(SYMBOLS_DIR + '/*.pdb/*/*.pdb') else: files = glob.glob(SYMBOLS_DIR + '/*/*/*.sym') + + # The file upload needs to be atom-shell/symbols/:symbol_name/:hash/:symbol + os.chdir(SYMBOLS_DIR) + files = [os.path.relpath(f, os.getcwd()) for f in files] + # The symbol server needs lowercase paths, it will fail otherwise # So lowercase all the file paths here files = [f.lower() for f in files]