-
Notifications
You must be signed in to change notification settings - Fork 243
Closed
Labels
*out-of-scopePosted issue is not in scope of VS CodePosted issue is not in scope of VS Code
Description
Running the same build twice produces different archives as timestamps differ.
Please add an option --reproducible which would set the timestamp to a fixed value.
We are currently using the following workaround:
EXT_LOCAL_NAME=$(pwd)/my-extension.vsix
vsce package --allow-missing-repository -o ${EXT_LOCAL_NAME}
# Create reproducible archive by setting deterministic timestamp
TMPDIR=$(mktemp -d)
unzip -q ${EXT_LOCAL_NAME} -d ${TMPDIR}
rm -f ${EXT_LOCAL_NAME}
cd ${TMPDIR} && find -exec touch -d 1970-01-01T00:00:00Z "{}" \; && zip -q -r -oX ${EXT_LOCAL_NAME} *
rm -rf ${TMPDIR}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
*out-of-scopePosted issue is not in scope of VS CodePosted issue is not in scope of VS Code