Skip to content

Commit

Permalink
add a warning for unpinned nf-schema versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Apr 18, 2024
1 parent 86fbe2e commit 2afc852
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,25 @@ class SchemaValidator extends PluginExtensionPoint {
protected void init(Session session) {
this.session = session
this.config = new ValidationConfig(session.config.navigate('validation') as Map)
def plugins = session.config.navigate("plugins") as ArrayList
if(plugins.contains("nf-schema")) {
log.warn("""
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! !
! WARNING! !
! !
! You just entered the danger zone! !
! Please pin the nf-schema version in your config! !
! Not pinning your version can't guarantee the reproducibility !
! and the functionality of this pipeline in the future !
! !
! plugins { !
! id "[email protected]" !
! } !
! !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
""")
}
}

boolean hasErrors() { errors.size()>0 }
Expand Down

0 comments on commit 2afc852

Please sign in to comment.