From 458ee939744d6b916d38e96f15bc0920f3b4505b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 9 Jan 2018 09:13:58 -0600 Subject: [PATCH] add the length to the build block to see if it fixes a bug --- app/Console/Commands/Version.php | 2 +- config/version.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Version.php b/app/Console/Commands/Version.php index af8b92a9..34a0850e 100644 --- a/app/Console/Commands/Version.php +++ b/app/Console/Commands/Version.php @@ -20,7 +20,7 @@ class Version extends BaseCommand $cfg = Yaml::parse(file_get_contents($version_file)); exec($cfg['git']['git-local'], $version); - $version = substr($version[0], 0, 6); + $version = substr($version[0], 0, $cfg['build']['length']); $cfg['build']['number'] = $version; file_put_contents($version_file, Yaml::dump($cfg, 4, 2)); diff --git a/config/version.yml b/config/version.yml index 4b266084..a57e1724 100644 --- a/config/version.yml +++ b/config/version.yml @@ -7,7 +7,9 @@ current: format: '{$major}.{$minor}.{$patch}' build: mode: number - number: 18cb95 + length: 6 + increment_by: 1 + number: 5e097e git_absorb: git-local git: git-local: 'git rev-parse --verify HEAD'