Skip to content

🐛 fiber migrate --to v3 resolves to 3.0.0 instead of latest 3.x #275

@MatiasRoje

Description

@MatiasRoje

Issue description

I found an inconsistency between docs/user expectation and actual fiber migrate behavior.

The official docs mention this migration flow:
https://docs.gofiber.io/whats_new

As a user, when I run:

fiber migrate --to v3

I expect it to migrate to the latest stable 3.x release (best practice for security/patch updates), not to the first 3.0.0 release.

How to reproduce

go install github.com/gofiber/cli/fiber@latest
fiber migrate --to v3
  • Output: Migration from Fiber 2.52.11 to 3.0.0
  • go.mod is set to github.com/gofiber/fiber/v3 v3.0.0

When running without --to:

fiber migrate

it migrated to 3.1.0 (latest as of today), which is what I expected from major-target migration too.

Expected result

Either:

  1. --to v3 resolves to the latest 3.x,
  2. docs/help clearly state that major-only version input resolves to 3.0.0.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions