You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's clear out some generated files and regenerate them from the lexicons!
rm -rf api/bsky
make lexgen
[ ... lots of output snipped ... ]
make cbor_gen
go run ./gen
# github.com/bluesky-social/indigo/api/bsky
api/bsky/actorprofile.go:19:46: cannot use &ActorProfile{} (value of type *ActorProfile) as typegen.CBORMarshaler value in argument to util.RegisterType: *ActorProfile does not implement typegen.CBORMarshaler (missing method MarshalCBOR)
api/bsky/embedexternal.go:12:52: cannot use &EmbedExternal{} (value of type *EmbedExternal) as typegen.CBORMarshaler value in argument to util.RegisterType: *EmbedExternal does not implement typegen.CBORMarshaler (missing method MarshalCBOR)
api/bsky/embedimages.go:12:50: cannot use &EmbedImages{} (value of type *EmbedImages) as typegen.CBORMarshaler value in argument to util.RegisterType: *EmbedImages does not implement typegen.CBORMarshaler (missing method MarshalCBOR)
api/bsky/embedrecord.go:16:50: cannot use &EmbedRecord{} (value of type *EmbedRecord) as typegen.CBORMarshaler value in argument to util.RegisterType: *EmbedRecord does not implement typegen.CBORMarshaler (missing method MarshalCBOR)
api/bsky/embedrecordWithMedia.go:18:59: cannot use &EmbedRecordWithMedia{} (value of type *EmbedRecordWithMedia) as typegen.CBORMarshaler value in argument to util.RegisterType: *EmbedRecordWithMedia does not implement typegen.CBORMarshaler (missing method MarshalCBOR)
api/bsky/embedrecordWithMedia.go:77:24: t.EmbedImages.MarshalCBOR undefined (type *EmbedImages has no field or method MarshalCBOR)
api/bsky/embedrecordWithMedia.go:80:23: t.EmbedVideo.MarshalCBOR undefined (type *EmbedVideo has no field or method MarshalCBOR)
api/bsky/embedrecordWithMedia.go:83:26: t.EmbedExternal.MarshalCBOR undefined (type *EmbedExternal has no field or method MarshalCBOR)
api/bsky/embedrecordWithMedia.go:96:24: t.EmbedImages.UnmarshalCBOR undefined (type *EmbedImages has no field or method UnmarshalCBOR)
api/bsky/embedrecordWithMedia.go:99:23: t.EmbedVideo.UnmarshalCBOR undefined (type *EmbedVideo has no field or method UnmarshalCBOR)
api/bsky/embedrecordWithMedia.go:99:23: too many errors
make: *** [Makefile:74: cborgen] Error 1
Apparently cborgen needs UnmarshalCBOR and MarshalCBOR to already be implemented in order to generate those functions. Hm.
This isn't a huge deal in the repo itself (though I'm curious how you get around it!) but it kind of stops lexgen from being useful to those of us that would like to generate Go types of our own Lexicons.
The text was updated successfully, but these errors were encountered:
Let's clear out some generated files and regenerate them from the lexicons!
Apparently cborgen needs
UnmarshalCBOR
andMarshalCBOR
to already be implemented in order to generate those functions. Hm.This isn't a huge deal in the repo itself (though I'm curious how you get around it!) but it kind of stops
lexgen
from being useful to those of us that would like to generate Go types of our own Lexicons.The text was updated successfully, but these errors were encountered: