Skip to content

Commit

Permalink
Checkout post-0.9.0 copy_from_upstream fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 authored and dstebila committed Jan 8, 2024
1 parent b0c20b9 commit 6252372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
git config --global user.name "ciuser" && \
git config --global user.email "[email protected]" && \
export LIBOQS_DIR=`pwd` && \
git config --global --add safe.directory $LIBOQS_DIR && \
cd scripts/copy_from_upstream && \
! pip3 install -r requirements.txt 2>&1 | grep ERROR && \
python3 copy_from_upstream.py copy && \
Expand Down
6 changes: 4 additions & 2 deletions scripts/copy_from_upstream/copy_from_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,6 @@ def copy_from_upstream():
for t in ["kem", "sig"]:
with open(os.path.join(os.environ['LIBOQS_DIR'], 'tests', 'KATs', t, 'kats.json'), "w") as f:
json.dump(kats[t], f, indent=2, sort_keys=True)
if not keepdata:
shutil.rmtree('repos')

update_upstream_alg_docs.do_it(os.environ['LIBOQS_DIR'])

Expand All @@ -622,6 +620,10 @@ def copy_from_upstream():
update_docs_from_yaml.do_it(os.environ['LIBOQS_DIR'])
update_cbom.update_cbom_if_algs_not_changed(os.environ['LIBOQS_DIR'], "git")

if not keepdata:
shutil.rmtree('repos')


def verify_from_upstream():
instructions = load_instructions()
basedir = "verify_from_upstream"
Expand Down

0 comments on commit 6252372

Please sign in to comment.