pingcap / pingcap/tiup

Can not use nightly in offline mirror

Open
#2,522 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/bug
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

Bug Report

https://github.com/pingcap/tiup/blob/e8c63c6cea9e4af5f5c59cc5a1186f21aac65f77/pkg/repository/clone_mirror.go#L284-L287

When clone offline without --full flag, and the version itself is not identical to nightly, the manifest will lack nightly setting. Thus any nightly-version-related operations to repository will fail.

  1. What did you do?
tiup mirror clone test -o xx -a xx xxx-nightly
  1. What did you expect to see?

  2. What did you see instead?

  3. What version of TiUP are you using (tiup --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

Start at pkg/repository/clone_mirror.go around lines 284-287 and reproduce the issue with tiup mirror clone test -o xx -a xx xxx-nightly without --full. Trace how the manifest is built when the requested version is not identical to nightly; done means nightly-version-related repository operations continue to work after the offline clone.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.