open-vault/scripts/deps_upgrade.py
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

13 lines
284 B
Python

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
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")