https://toitlang.org/ logo
DS3231 driver and package registry
# help
p
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
f
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.
p
Thank you and good night !
f
Btw. I just skimmed through the code and saw some minor things that aren't "toity". Are you interested in a PR for those?
p
Yes !
I have made some modifications (already on github) ahead of v0.9.0 U hope this is not a problem
I hope
I merged the PR thanks for the corrections I will now remove the Error object
f
I'm guessing you come from Go?
p
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
f
I already created a PR to remove the duplicate package. Just needs a review.
p
Thank you
5 Views