Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Checker incorrectly detects the server build #5463

Open
Gaprix opened this issue Dec 20, 2022 · 1 comment
Open

Update Checker incorrectly detects the server build #5463

Gaprix opened this issue Dec 20, 2022 · 1 comment
Labels
Category: Core Related to internal functionality Easy task Probably really easy to do, good task for first-time contributors Status: Debugged Cause of the bug has been found, but not fixed

Comments

@Gaprix
Copy link
Contributor

Gaprix commented Dec 20, 2022

Issue description

When using the alpha build of the server (PM5), Update Checker detects it as a stable build.

  • Expected result: Update Checker detects the alpha build of the server.
  • Actual result: Update Checker shows a message that a stable build is being used.

Steps to reproduce the issue

  1. Install the alpha build.
  2. Set the preferred-channel parameter to "alpha" in pocketmine.yml.
  3. Start the server.
  4. A message appears in the log that a stable build is being used.

OS and versions

  • PocketMine-MP: 5.0.0-ALPHA6 (git hash: da4315d)
  • PHP: 8.0.25
  • Server OS: Linux

Plugins

None.

Crashdump, backtrace or other files

https://pastebin.com/h8Ht8fWc

@dktapps dktapps added Category: Core Related to internal functionality Status: Debugged Cause of the bug has been found, but not fixed labels Dec 23, 2022
@dktapps
Copy link
Member

dktapps commented Dec 23, 2022

This happens because VersionInfo::IS_DEVELOPMENT_BUILD is used to determine whether the channel should be stable or not. This is incorrect, because any released build has IS_DEVELOPMENT_BUILD=false, but is not necessarily stable.

Two possible solutions:

  • Use VersionInfo::BUILD_CHANNEL instead
  • Remove these warnings entirely. It's questionable what benefit they really offer anyway.

@dktapps dktapps added the Easy task Probably really easy to do, good task for first-time contributors label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core Related to internal functionality Easy task Probably really easy to do, good task for first-time contributors Status: Debugged Cause of the bug has been found, but not fixed
Projects
None yet
Development

No branches or pull requests

2 participants