Skip to content

Commit

Permalink
workaround for chocolatey CLI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphlange committed Mar 10, 2024
1 parent dead44c commit 494f67c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cue-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ class TestSetupForBuild(unittest.TestCase):
choco_installs = ['make']
if ci_service != 'appveyor':
choco_installs.append('strawberryperl')
sp.check_call(['choco', 'install', '-ry'] + choco_installs)
sp.check_call(['choco', 'install', '-ry'] + choco_installs + ['-y', '--limitoutput', '--no-progress', '-u', '""', '-p', '""'])

def setUp(self):
cue.building_base = True
Expand Down
2 changes: 1 addition & 1 deletion cue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ def prepare(args):
fold_start('install.choco', 'Installing CHOCO packages')
for i in range(0,3):
try:
sp.check_call(['choco', 'install'] + ci['choco'] + ['-y', '--limitoutput', '--no-progress'])
sp.check_call(['choco', 'install'] + ci['choco'] + ['-y', '--limitoutput', '--no-progress', '-u', '""', '-p', '""'])
except Exception as e:
print(e)
print("Retrying choco install attempt {} after 30 seconds".format(i+1))
Expand Down

0 comments on commit 494f67c

Please sign in to comment.