gclould-cli not quarantined properly #6783
Replies: 1 comment · 7 replies
-
|
I have the same issue, I tried all sorts of things with |
Beta Was this translation helpful? Give feedback.
All reactions
-
That looks odd as same command is outputting different results. May want to try running it manually. You could also try patching local https://github.com/Homebrew/brew/blob/5.1.5/Library/Homebrew/cask/quarantine.rb#L110-L113 to see if Beyond that, no idea for reason. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Same command with |
Beta Was this translation helpful? Give feedback.
All reactions
-
That looks quarantined as expected. Sadly nothing obvious in logs so no idea what could be issue. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I 'fixed' it. Or at least I've worked around it for now. (Thanks for the pointer @cho-m). Running with https://github.com/Homebrew/brew/blob/5.1.5/Library/Homebrew/cask/quarantine.rb#L110-L113 I've added some debug lines: def self.status(file)
# sleep(30)
x = system_command(xattr,
args: ["-p", QUARANTINE_ATTRIBUTE, file],
print_stderr: false)
odebug "FOO: #{x.stdout} #{x.stderr} #{x.success?} #{x.exit_status}"
x.stdout.rstrip
endThe result: So the first time around it gave a I don't have a clear idea what could cause that, but it seems as if it's timing out somewhere (?). I expected some interference of Microsoft Defender that maybe was scanning the file at the same time or something. I added the Not sure what the real fix is though, maybe a longer 'timeout' (although I see none specified) or a retry if the exit_code is non-zero? Either way it's not really nice to ignore a non-zero exit code I suppose. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew configOutput of
brew doctorDescription of issue
Installing gcloud-cli is failing repeatedly:
I am unable to disable quarantining.
Relevant casks
gcloud-cli
Beta Was this translation helpful? Give feedback.
All reactions