Skip to content

Commit f1257d3

Browse files
authored
fix: Allow download-sources to run as root (#89)
1 parent b21dc73 commit f1257d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/app/azldev/cmds/downloadsources/downloadsources.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Either --component or --lookaside-uri must be provided:
6969
azldev advanced download-sources \
7070
--lookaside-uri 'https://cache1.example.com/$pkg/$filename/$hashtype/$hash/$filename' \
7171
--lookaside-uri 'https://cache2.example.com/$pkg/$filename/$hashtype/$hash/$filename'`,
72+
Annotations: map[string]string{
73+
azldev.CommandAnnotationRootOK: "true",
74+
},
7275
RunE: azldev.RunFuncWithoutRequiredConfig(func(env *azldev.Env) (interface{}, error) {
7376
if options.Directory == "" {
7477
options.Directory = "."

0 commit comments

Comments
 (0)