Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhtuan0409 committed Nov 21, 2024
1 parent 2c801a7 commit 034a050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cue/cmd/testdata/script/modpublish_no_major_suffix.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ exec cue mod publish v0.0.1

# The inferred version is v0. Using any other major version will fail.
! exec cue mod publish v1.0.0
stderr 'publish version "v1.0.0" does not match implied major version "v0" in ".*module.cue"; must be v0.N.N'
stderr 'publish version "v1.0.0" does not match the major version "v0" declared in ".*module.cue"; must be v0.N.N'
! exec cue mod publish v2.0.0
stderr 'publish version "v2.0.0" does not match implied major version "v0" in ".*module.cue"; must be v0.N.N'
stderr 'publish version "v2.0.0" does not match the major version "v0" declared in ".*module.cue"; must be v0.N.N'

# `cue mod fix` will not add add a major version suffix when missing.
exec cue mod fix
Expand Down

0 comments on commit 034a050

Please sign in to comment.