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
Reproducer:
Create new repository with tag and/or topic:
$ snactor repo new NewRepo
New repository NewRepo has been created in /home/user/NewRepo
$ snactor new-tag Tag
New tag Tag has been created in /home/user/NewRepo/tags/tag.py
$ snactor new-topic Topic
New topic Topic has been created in /home/user/NewRepo/topics/topic.py
Running snactor discover doesn't detect the created tag and topic:
Note:
When creating new workflow, workflow tag is automatically created:
$ snactor workflow new Workflow
New tag WorkflowTag has been created in /home/user/NewRepo/tags/workflow.py
New workflow Workflow has been created in /home/user/NewRepo/workflows/workflow.py
However this tag is detected by snactor discover but with wrong path:
The problem is probably in the special names of created tags and topics - when the name of the created tag is Tag, the resulting code for the tag is
classTag(Tag):
And the same problem has topic with name Topic and model with name Model. The snactor command should therefore prohibit creating objects with same name as their base class, even for actors and workflows where the snactor discover command works as expected.
Reproducer:
Create new repository with tag and/or topic:
Running
snactor discover
doesn't detect the created tag and topic:Expected behavior:
Note:
When creating new workflow, workflow tag is automatically created:
However this tag is detected by
snactor discover
but with wrong path:The text was updated successfully, but these errors were encountered: