tilt-dev / tilt-dev/tilt

version_settings(constraint) should point to upgrade instructions

Open
#3,765 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

Currently version_settings(constraint) prints this error message:

you are running Tilt version %s, which doesn't match the version constraint specified in your Tiltfile: '%s

It would be nice if it contained upgrade instructions, more like the extension:

https://github.com/tilt-dev/tilt-extensions/blob/master/min_tilt_version/Tiltfile#L19

    print('+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+')
    print('|                      Tilt Version is out of date!                          |')
    print('|       Please upgrade https://docs.tilt.dev/upgrade.html                    |')
    print('+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+')
    fail('Tilt version is out of date minimum required version is [%s]' % min_version)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the implementation of version_settings(constraint) and compare its current version-mismatch message with the upgrade guidance shown in the linked min_tilt_version/Tiltfile example. Update the message to point users to the upgrade instructions, then verify that the resulting output includes the expected guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
developer-experience
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.