Skip to content

Commit

Permalink
fix: fix wrong default version for ModSpec
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Nov 11, 2024
1 parent bd9e788 commit 0d08395
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/visitor/visitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ func (rv *RemoteVisitor) Visit(s *downloader.Source, v visitFunc) error {
rv.LogWriter,
)

if !s.ModSpec.IsNil() && s.ModSpec.Version == "" {
s.ModSpec.Version = latest
}

if s.Oci != nil {
s.Oci.Tag = latest
}
Expand Down

0 comments on commit 0d08395

Please sign in to comment.