microsoft / microsoft/winget-pkgs

[Package Issue]: ByteDance.TraeWork.CN infinite update loop (v0.1.15 → 2.3.33252)

Open
#400,724 3 comments 0 reactions 0 assignees View on GitHub
Needs-Triage
Dominant language
No language data
Stars
11.1k
Forks
9.7k
PR merge metrics
PR metrics pending

Description

## Category of the issue

Installation / version detection issue.

## Brief description of your issue

When using `winget upgrade ByteDance.TraeWork.CN`, winget reports an available update but the update never actually applies. `winget list` always shows the installed version as `0.1.15`, while the available version is shown as `2.3.33252`. The versioning schemes do not match — the **PackageVersion** (`0.1.15`) is the product version, while the **InstallerVersion** (`2.3.33252`) is a build number. Since `0.1.15` < `2.3.33252`, winget always thinks an update is available even after successfully installing the latest package. This causes an infinite update loop.

## Related

- Existing issue #387713 for v0.1.18 / 2.3.38422 — same root cause, different versions.

## Steps to reproduce

1. Run `winget list ByteDance.TraeWork.CN` — shows installed version `0.1.15`.
2. Run `winget upgrade --id ByteDance.TraeWork.CN` — offers version `2.3.33252`, runs the installer successfully.
3. Run `winget list ByteDance.TraeWork.CN` — still shows installed version `0.1.15`.
4. Run `winget upgrade --id ByteDance.TraeWork.CN` again — still offers the same "update".

## Actual behavior

After upgrade, `winget list` still says `0.1.15`. Winget keeps offering the same update forever.

## Expected behavior

Winget should either:
- Use the **InstallerVersion** as the authoritative version for comparison, or
- The manifest should only publish versions where the product version and installer version are aligned in the same scheme, so winget can correctly detect that the installed version is already current.

## Environment

```
Windows 程序包管理器 (latest)
ByteDance.TraeWork.CN v0.1.15 (installed)
Winget manifest latest: 0.1.15 (2.3.33252)
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the loop with `winget list ByteDance.TraeWork.CN` and `winget upgrade --id ByteDance.TraeWork.CN`, then compare the package manifest's PackageVersion and InstallerVersion. Review related issue #387713 and the manifest for ByteDance.TraeWork.CN; done means the installed package is no longer offered repeatedly after a successful upgrade, with the chosen versioning behavior verified.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.