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 14
14
# limitations under the License.
15
15
16
16
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
18
18
19
19
echo " --> Generating specification types"
20
20
21
21
declare targetdir=" /tmp/serverlessworkflow"
22
22
23
- if [ -d " ${targetdir} " ]; then
23
+ if [ ! -d " ${targetdir} " ]; then
24
24
git clone git@github.com:serverlessworkflow/specification.git ${targetdir}
25
25
fi
26
26
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
28
28
29
29
cp -v generated.types_spec.go ./pkg/apis/sw/
30
30
You can’t perform that action at this time.
0 commit comments