Skip migrations on go < 1.3

because there won't be a `gfmrun` around to extract examples
main
Dan Buch 8 years ago
parent 87f9c6d44a
commit 812fa64d8e
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

@ -75,6 +75,11 @@ def _vet():
@_target
def _migrations():
go_version = check_output('go version'.split()).split()[2]
if go_version < 'go1.3':
print('runtests: skip on {}'.format(go_version), file=sys.stderr)
return
migration_script = os.path.abspath(
os.environ.get('V1TOV2', './cli-v1-to-v2')
)

Loading…
Cancel
Save