liquibase / liquibase-groovy-dsl

The official Groovy DSL for Liquibase
Other
83 stars 33 forks source link

`include` does not accept absolute path with drive on windows #60

Open b-gyula opened 3 months ago

b-gyula commented 3 months ago

This script gives

Unexpected error running Liquibase: D:/dev/liquibase/groovy-dsl/test/changelogs/log1.groovy does not exist
liquibase.exception.ChangeLogParseException: D:/dev/liquibase/groovy-dsl/test/changelogs/log1.groovy does not exist

even if the file does exists

databaseChangeLog {
    include (file: 'D:/dev/liquibase/groovy-dsl/test/changelogs/log1.groovy')
}

This works fine:

databaseChangeLog {
    include (file: '/dev/liquibase/groovy-dsl/test/changelogs/log1.groovy')
}
stevesaliman commented 1 month ago

Version 4.0.0 of the Groovy DSL was released this morning. It changes the way include finds resourceses. Is this still an issue with the latest version?