Skip migrations on go < 1.3

because there won't be a `gfmrun` around to extract examples
This commit is contained in:
Dan Buch 2016-08-22 17:54:51 -04:00
parent 87f9c6d44a
commit 812fa64d8e
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -75,6 +75,11 @@ def _vet():
@_target @_target
def _migrations(): 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( migration_script = os.path.abspath(
os.environ.get('V1TOV2', './cli-v1-to-v2') os.environ.get('V1TOV2', './cli-v1-to-v2')
) )