Skip to content

Fresh auto-update output is too scary #3688

@Ionaru

Description

@Ionaru

I recently started a fresh project and I got the notification that an update was available:

Fresh 2.2.1 is available. You're on 2.2.0
To upgrade, run: deno run -A -r jsr:@fresh/update
Image

Sounds pretty reasonable, it's a patch update so shouldn't be too much to do.
So I run deno run -A -r jsr:@fresh/update and this was the output, split into sections so I can add comments.

 🍋 Fresh Updater

Note: Breaking changes may require additional manual updates.

Where is the project directory? .

Sounds okay so far.

🚀 Starting Fresh 1 to Fresh 2 migration...

...what? I am already on Fresh 2, why is this here? Very tempting to already kill the process at this point.

📝 Updating configuration files...

Which configuration files it doesn't mention, and as a patch release... okay do your thing I suppose

✅ Configuration updated successfully

Not sure what "configuration" was updated, git diff shows no changes.

🔍 Scanning for source files...
📁 Found 9 files to process
🔄 Processing files...

Nothing strange here, 9 files to process, continue...

[00:08] [##################################################] [719/719 files]

Where in the world did it find 719 files to process?? It said 9 before!

📊 Migration Summary:
   Total files processed: 9
   Successfully modified: 0
   Unmodified (no changes needed): 9

In the summary it's only 9 files again, and nothing modified.

🎉 Migration completed successfully!

...yay?


Image

After all this. The only thing that was changed was the formatting in deno.json.

Image

Shouldn't it have at least updated deno.lock to update something?


And It didn't even update anything: #3683

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions