Closed FrantaNautilus closed 1 month ago
Thank you so much for trying out Harbor and for reporting the issue!
The current install/update is indeed poorly implemented. We'll be switching away from using shell for this in the future. The current iteration of the issue was caused by multiple things adding up together:
-v
flag for sort
, so a workaround had to be implemented which didn't work as expected and was resolving to v0.0.2
(😅). I replaced it with resolution via GitHub API and curl
(making an assumption that it's available due to how install is specified)harbor config set
wasn't MacOS compatible and started being called on every start of the CLI (to record UIDs for containers). The fix for this was already in main, but unreleased (and inaccessible due to latest
tag resolutionI push fixes for these issues and couple of other things in v0.1.32. Tested a clean install on MacOS, seems to be working as expected now. (I'm not asking you to verify, since I'm already ashamed you had to spend your time investigate this thing, sorry!)
because the profile in default.env is not updated to contain new environment variables
Yes, unfortunately that's also a consequence of a failed update. There's a command for re-merging the defaults - harbor config update
, but of course it wouldn't work if the update fails prior to that, leaving the setup in a permanently broken condition.
So, thank you so much for a detailed report, it's a great help when investigating things like this!
Thank you for a quick fix. Only now I have realized I forgot to mention my OS, I am not on Mac OS but on Fedora Silverblue (derivative called Bluefin DX, this is the reason my home directory is under /var
). I don't know if that changes anything about the causes of the problem, but I don't want to give you incomplete information.
Thank you for pointing that out, I was completely blinded by having this problem being related to MacOS setup specifically. But indeed, it was broken more generally after the previous fix attempts
Tested updating to CLI version: 0.2.0 via harbor update -l
and no problems appeared. Config merging works fine.
That's great to hear! Thank you so much for the additional tests and a follow-up! Sorry for not getting back to you on the other issues, I really wanted to release the app before this Monday, as I'll have drastically less time for Harbor now
Upon clean installation of
harbor
the version 1.9 is installed and when the commandharbor update --latest
is issued a merge conflict is reported by git:Even though the
harbor
reports successful update, it is effectively broken because the profile indefault.env
is not updated to contain new environment variables. This leads toharbor
commands being broken, e.g.In order to get a fully working latest installation I had to perform it manually and it seams that manual update is currently the only working option.