guild icon
Toit
#DS3231 driver and package registry
Thread channel in help
pkarsy
pkarsy 03/30/2025 06:17 PM
Hi
I have recently found about toit and as I am working (as a hobbyist) on a project using the
DS3231 real time clock I decided to create a driver for it. The driver has the
github page

https://github.com/pkarsy/toit-ds3231

Although with very limited testing, seems to work OK.
The problems started when I tried to register the project to

https://pkg.toit.io

The name of the project was "ds3231-toit" (github name) and I registered the version v0.8.0

After reading a recommendation in the documentation, I renamed it to "toit-ds3231" (a bad idea it seems)
Unfortunatelly now there are 2 ds3231 drivers appearing as separate projects in the package registry
The old one of course is absolete and it should be removed

How can I do this ?

Also there are some revisions in the new driver I rather delete. I am not familiar with releases and semantic
versioning and I messed up the release.
Is there any way to delete some specific version ?

Thank you in advance
Panagiotis

PS. The language is fantastic ! I never had any expectation such a good option will ever exist for embedded programming. This includes the very good syntax the jag and artemis tools and of course the VS-code plugin
toit driver for the DS3231 real time clock. Contribute to pkarsy/toit-ds3231 development by creating an account on GitHub.
floitsch
floitsch 03/30/2025 06:22 PM
Thanks!
There isn't any official way to do this, but I can update the registry server (https://github.com/toitware/registry) by hand.
I'm traveling right now, but I can do it tomorrow. Don't hesitate to ping me if I forget.
Toit package management registry. Contribute to toitware/registry development by creating an account on GitHub.
pkarsy
pkarsy 03/30/2025 06:23 PM
Thank you and good night !
pkarsyOPpkarsy
Thank you and good night !
floitsch
floitsch 03/30/2025 06:24 PM
Btw. I just skimmed through the code and saw some minor things that aren't "toity". Are you interested in a PR for those?
pkarsy
pkarsy 03/30/2025 07:23 PM
Yes !
👍1
pkarsy
pkarsy 03/30/2025 07:32 PM
I have made some modifications (already on github) ahead of v0.9.0 U hope this is not a problem
pkarsy
pkarsy 03/30/2025 07:32 PM
I hope
pkarsy
pkarsy 04/01/2025 10:20 AM
I merged the PR thanks for the corrections I will now remove the Error object
👍1
floitsch
floitsch 04/01/2025 10:22 AM
I'm guessing you come from Go?
pkarsy
pkarsy 04/01/2025 05:19 PM
Yes I like golang without having any deep knowledge
However I am very happy to adopt the idioms/best practices of toitlang
I also removed the Error object as you suggested
(I did not upload the new code yet, needs polishing and debugging)

Thanks for your help !
Whenever you can, remove the duplicate ds3231 in pkg.toit.io

PS. Needless to say any corrections you want to make to the code are welcome
👍1
pkarsyOPpkarsy
Yes I like golang without having any deep knowledge However I am very happy to adopt the idioms/best practices of toitlang I also removed the Error object as you suggested (I did n...
floitsch
floitsch 04/01/2025 08:13 PM
I already created a PR to remove the duplicate package. Just needs a review.
pkarsy
pkarsy 04/02/2025 05:37 AM
Thank you
12 messages in total