Problems with RootCertificate (solved)
# help
k
I get a huge number of errors : Reinstalled the pkg several time without success ?

https://cdn.discordapp.com/attachments/1134570574098735104/1134570575088603277/image.png

f
Erik released a new version of the certificate roots package.
Looks like it doesn't have the sdk-constraint set correctly. Let me have a look.
hmm. It does.
how do you install the package?
nvm. I can reproduce.
k
jag pgk install toit-cert-roots
toit-cert-roots: url: github.com/toitware/toit-cert-roots version: 1.6.0 hash: b8af3c3fd83a0b3368b938422e7f2545c7e2be94
f
Yeah. it's a mistake in the sdk constraint.
Let me fix it. Hopefully won't take too long. In the meantime you can run
jag pkg install toit-cert-roots@v1.5.0
(iirc)
Should be working again.
Thanks for letting us know.
k
what means (iirc)
f
iirc=if I remember correctly
k
🤦🏻‍♂️ 🤔 😁
Why do i get this: Unhandled error: worktree contains unstaged changes
f
bah.
I haven't really figured out when and why this happens, but it means that the registry checkout in your cache is broken.
You can just delete it.
It's in your home in
.cache/toit/tpkg-registries/github.com/toitware/registry
k
I guess, if VSC is running and there are updates in package file are locked and not changed. Only a guess !
f
You think it's visual studio code?
Normally vsc doesn't even see the registry checkout.
k
I wonder why i have sometimes problems with the registry, ONLY a supposition
f
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.
k
deleting the reg folder - followed by jag pkg clean - recovers it
f
Would also make it easier to eventually rewrite the package manager in Toit. Unfortunately not a high priority, but would be so much nicer.
k
Nevertheless, thank you and have a nice evening 👍🏻
f
You too. And again thanks for reporting the issue. It's one of the most used packages, so that would have hurt.