open-vault/scripts/deps_upgrade.py
Hridoy Roy 2da7de2fec
Minimal changes to solve Dependency CVEs [VAULT-871] (#11015)
* minimal changes to solve most of the cves

* cleanup

* finished go mod vendor upgrades
2021-03-01 14:35:40 -08:00

10 lines
216 B
Python

import os
import sys
filename = sys.argv[1]
with open(filename) as f:
content = f.readlines()
for l in content:
name = l.split()[0]
print(name)
os.system("go get " + name + "@latest")