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
Sometimes generated code seems to contain an extra / which needs to be removed manually. I have only noticed this with sysl specs that import a swagger file. Ask @anzboi for the repo where I first noticed this problem
Steps to Reproduce
As best as I can tell, this is how I produced the error. It may not occur for every swagger import
Use the sysl-go template to create a repo
Update the simple.sysl file to import your new swagger file
run make
Generated code contains imports like
import path/to/dependency//package
Expected behavior:
Imports should only contain a single / per path element.
Actual behavior:
Sometimes imports contain two
Your Environments
$ sysl info
Build:
Version : 0.76.0
Git Commit : c89f026
Date : 2020-05-04T06:30:28Z
Go Version : go1.13.10 linux/amd64
OS : darwin/amd64
Runtime:
GOOS/GOARCH : darwin/amd64
Go Version : go1.13.10
$ sysl env
SYSL_MODULES=""
SYSL_PLANTUML=""
@anzboi Are you able to reproduce this issue currently? A similar looking issue was fixed a few months ago but we can revisit if it's still presenting.
Description
Sometimes generated code seems to contain an extra
/
which needs to be removed manually. I have only noticed this with sysl specs that import a swagger file. Ask @anzboi for the repo where I first noticed this problemSteps to Reproduce
As best as I can tell, this is how I produced the error. It may not occur for every swagger import
make
Generated code contains imports like
Expected behavior:
Imports should only contain a single
/
per path element.Actual behavior:
Sometimes imports contain two
Your Environments
Relocated from anz-bank/sysl#833
Raised by @anzboi
The text was updated successfully, but these errors were encountered: