File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414# limitations under the License.
1515
1616
17- which ./bin/gojsonschema > /dev/null || go build -o ./bin/gojsonschema github.com/atombender/go-jsonschema/cmd/gojsonschema
17+ which ./bin/gojsonschema > /dev/null || go build -o ./bin/gojsonschema github.com/atombender/go-jsonschema/cmd/gojsonschema && go mod tidy
1818
1919echo " --> Generating specification types"
2020
2121declare targetdir=" /tmp/serverlessworkflow"
2222
23- if [ -d " ${targetdir} " ]; then
23+ if [ ! -d " ${targetdir} " ]; then
2424 git clone git@github.com:serverlessworkflow/specification.git ${targetdir}
2525fi
2626
27- ./bin/gojsonschema -o generated.types_spec.go -p sw " ${targetdir} " /specification/ schema/workflow.json
27+ ./bin/gojsonschema -o generated.types_spec.go -p sw " ${targetdir} " /schema/workflow.json
2828
2929cp -v generated.types_spec.go ./pkg/apis/sw/
3030
You can’t perform that action at this time.
0 commit comments