You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in FreeBSD packages, cmake-core has a vulnerability. When topgrade executes pkg audit -Fr it displays the vulnerability the errors out because the status return is 1 and not 0. However, topgrade should continue. Right now, audit cannot be disabled for FreeBSD (AFAIK) and topgrade just exits out even though it should not. We need to either make the audit optional or let it not fail if status code result is not zero.
Expected Behavior
Calling pkg audit -Fr on FreeBSD where a vulnerability is found should display to error but continue going. Note I would not want to make it part of the System step or package upgrade step... as I want those 'as is'. If I had to remove it by disabling System, I'd just manually have to add in the upgrade. But if that was the required technique, It would at least work.
Preferred option to me is to create an audit step (default on) given auditing is part of multiple systems.
── 09:07:22 - FreeBSD Packages ─────────────────────────────────────────────────
DEBUG Executing command /usr/local/bin/sudo /usr/sbin/pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
DEBUG Step "FreeBSD Upgrade"
── 09:07:23 - FreeBSD Update ───────────────────────────────────────────────────
DEBUG Executing command /usr/local/bin/sudo /usr/sbin/freebsd-update fetch install
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 14.0-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
No updates needed to update system to 14.0-RELEASE-p4.
No updates are available to install.
Erroneous Behavior
Currently in FreeBSD packages, cmake-core has a vulnerability. When topgrade executes
pkg audit -Fr
it displays the vulnerability the errors out because the status return is 1 and not 0. However, topgrade should continue. Right now, audit cannot be disabled for FreeBSD (AFAIK) and topgrade just exits out even though it should not. We need to either make the audit optional or let it not fail if status code result is not zero.Expected Behavior
Calling
pkg audit -Fr
on FreeBSD where a vulnerability is found should display to error but continue going. Note I would not want to make it part of the System step or package upgrade step... as I want those 'as is'. If I had to remove it by disabling System, I'd just manually have to add in the upgrade. But if that was the required technique, It would at least work.Preferred option to me is to create an audit step (default on) given auditing is part of multiple systems.
Steps to reproduce
sudo pkg install cmake
topgrade
Possible Cause (Optional)
The audit command is required and status checked.
Here is where the audit command is required, and the implementation with status checked
Sample fix in this PR: #640
Problem persists without calling from topgrade
Sorta, you can see this by doing the following:
sudo pkg install cmake
pkg audit -Fr
echo $?
Did you run topgrade through
Remote Execution
If yes, does the issue still occur when you run topgrade directlly in your
remote host
Configuration file (Optional)
Used the default configuration file.
Additional Details
14.0-RELEASE-p3
Cargo
topgrade -V
)Topgrade 13.0.0
Verbose Output (
topgrade -v
)The text was updated successfully, but these errors were encountered: