guild icon
Toit
#Problems with RootCertificate (solved)
Thread channel in help
kaxori
kaxori 07/28/2023 07:38 PM
I get a huge number of errors :
Reinstalled the pkg several time without success ?
floitsch
floitsch 07/28/2023 07:39 PM
Erik released a new version of the certificate roots package.
floitsch
floitsch 07/28/2023 07:39 PM
Looks like it doesn't have the sdk-constraint set correctly. Let me have a look.
floitsch
floitsch 07/28/2023 07:40 PM
hmm. It does.
floitsch
floitsch 07/28/2023 07:40 PM
how do you install the package?
floitsch
floitsch 07/28/2023 07:41 PM
nvm. I can reproduce.
kaxori
kaxori 07/28/2023 07:41 PM
jag pgk install toit-cert-roots
kaxori
kaxori 07/28/2023 07:41 PM
toit-cert-roots:
url: github.com/toitware/toit-cert-roots
version: 1.6.0
hash: b8af3c3fd83a0b3368b938422e7f2545c7e2be94
floitsch
floitsch 07/28/2023 07:42 PM
Yeah. it's a mistake in the sdk constraint.(edited)
floitsch
floitsch 07/28/2023 07:42 PM
Let me fix it. Hopefully won't take too long.
In the meantime you can run jag pkg install [email protected] (iirc)
floitsch
floitsch 07/28/2023 07:46 PM
Should be working again.
floitsch
floitsch 07/28/2023 07:46 PM
Thanks for letting us know.
kaxori
kaxori 07/28/2023 07:47 PM
what means (iirc)
floitsch
floitsch 07/28/2023 07:47 PM
iirc=if I remember correctly
kaxori
kaxori 07/28/2023 07:47 PM
:🤦🏻‍♂️: :🤔: :😁:
kaxori
kaxori 07/28/2023 07:49 PM
Why do i get this: Unhandled error: worktree contains unstaged changes
floitsch
floitsch 07/28/2023 07:49 PM
bah.
floitsch
floitsch 07/28/2023 07:49 PM
I haven't really figured out when and why this happens, but it means that the registry checkout in your cache is broken.
floitsch
floitsch 07/28/2023 07:49 PM
You can just delete it.
floitsch
floitsch 07/28/2023 07:50 PM
It's in your home in .cache/toit/tpkg-registries/github.com/toitware/registry
kaxori
kaxori 07/28/2023 08:20 PM
I guess, if VSC is running and there are updates in package file are locked and not changed. Only a guess !
floitsch
floitsch 07/28/2023 08:21 PM
You think it's visual studio code?
floitsch
floitsch 07/28/2023 08:21 PM
Normally vsc doesn't even see the registry checkout.
kaxori
kaxori 07/28/2023 08:22 PM
I wonder why i have sometimes problems with the registry, ONLY a supposition
floitsch
floitsch 07/28/2023 08:24 PM
I'm open for all ideas. (especially the ones that are easy to fix :😉:
We are using a Go library to do the checkout. If things get worse I might just switch to calling out to git instead of using the library. I would feel more comfortable with that.
kaxori
kaxori 07/28/2023 08:24 PM
deleting the reg folder - followed by jag pkg clean - recovers it
👍1
floitsch
floitsch 07/28/2023 08:24 PM
Would also make it easier to eventually rewrite the package manager in Toit. Unfortunately not a high priority, but would be so much nicer.
kaxori
kaxori 07/28/2023 08:26 PM
Nevertheless, thank you and have a nice evening :👍🏻:(edited)
floitsch
floitsch 07/28/2023 08:36 PM
You too. And again thanks for reporting the issue. It's one of the most used packages, so that would have hurt.
30 messages in total