Hello to everybody!
I've got a pretty strange traceback, after I've created .build.yml
inside my repo, here it is:
> remote: Traceback (most recent call last):> remote: File "hooks/post-update", line 55, in <module>> remote: do_post_update(repo, refs)> remote: File "/usr/lib/python3.7/site-packages/gitsrht/submit.py", line 155, in do_post_update> remote: s.submit(commit)> remote: File "/usr/lib/python3.7/site-packages/scmsrht/submit.py", line 34, in submit> remote: self._do_submit(raw_manifests, commit)> remote: File "/usr/lib/python3.7/site-packages/scmsrht/submit.py", line 65, in _do_submit> remote: self._auto_setup
Am I doing something wrong?
You can find the build manifest I am submitting here:
https://git.sr.ht/~alexcleac/mastopi/tree/master/.build.yml
Re: Weird traceback on remote when submit a build manifest
Thank you very much, this fixed an issue.
It seems there is small inconsistensy regarding this field in the
manifest reference. It is said that sources allow list or string:
> ## sources>> *list* (of *string*)
Is this an issue in the docs or inside implementation? I've just looked
at build.sr.ht source code, there is code that checks whether it is a
string or the list, like the docs say :)
Also, I've got a quick question while looking at it's sources: have you
considered using trafaret[1] (or any of its wrappers) validation library
to do the validation of manifest file? It's pretty lightweight and fast,
would make the amount of code smaller and simpler. Do you mind if I try
adopting it?
Links:
* 1 - https://pypi.org/project/trafaret/
Yours,
alexcleac
--
P.S. Sorry for posting this not on to the list initially :)
Re: Weird traceback on remote when submit a build manifest
On Tue Jul 23, 2019 at 8:02 PM alexcleac wrote:
> Thank you very much, this fixed an issue.> > It seems there is small inconsistensy regarding this field in the> manifest reference. It is said that sources allow list or string:> > > ## sources> >> > *list* (of *string*)
It says list *of* string, not list *or* string.
> Also, I've got a quick question while looking at it's sources: have you> considered using trafaret[1] (or any of its wrappers) validation library> to do the validation of manifest file? It's pretty lightweight and fast,> would make the amount of code smaller and simpler. Do you mind if I try> adopting it?
I'm not interested in this right now, but thank you for the offer.