Skip to content

Commit

Permalink
fix: Docker Compose version parsing fixed
Browse files Browse the repository at this point in the history
related to #310
  • Loading branch information
augi committed Jul 31, 2021
1 parent 056ee5d commit 085c0a7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ class ComposeExecutor {

VersionNumber getVersion() {
if (cachedVersion) return cachedVersion
cachedVersion = VersionNumber.parse(executeWithAnsi('version', '--short'))
String rawVersion = executeWithAnsi('version', '--short')
cachedVersion = VersionNumber.parse(rawVersion.startsWith('v') ? rawVersion.substring(1) : rawVersion)
}

Iterable<String> getContainerIds(String serviceName) {
Expand Down

0 comments on commit 085c0a7

Please sign in to comment.