forked from LandSandBoat/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix Docker build failures caused by .dockerignore excluding ext/ dependency configuration #18
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
Merged
muah1987
merged 15 commits into
base
from
copilot/fix-bb947640-5a4e-4ab3-a31a-e26b94a289f5
Sep 2, 2025
Merged
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
78ae120
Initial plan
Copilot bffe722
Fix version function compilation errors - main CI/CD issue resolved
Copilot 748cb66
Complete robust template-based version system - CI/CD ready
Copilot 0a910f9
Addressing PR comments
Copilot 40a3a28
Add missing newline to version.h.in template file
Copilot 81aa673
Fix C++ formatting violations in version system files
Copilot d1b7ec5
Fix CMake variable substitution and constexpr issues in version system
Copilot 9cec984
Fix template formatting issues and complete build system analysis
Copilot ee50c1b
Fix version system compilation and build configuration issues causing…
Copilot 1f0ee97
Update dependencies and fix CI formatting issues
Copilot edd374b
Fix CMake variable substitution syntax in version.cpp.in template
Copilot c9c1121
Enhance cross-platform build system with multi-arch Docker support
Copilot 366536b
Fix Python dependency versions for Docker build compatibility
Copilot 93a8ef8
Fix argparse dependency ordering for Docker builds
Copilot a7493e4
Fix Docker build failures by resolving .dockerignore ext/ exclusion i…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| /* | ||
| =========================================================================== | ||
|
|
||
| Copyright (c) 2010-2015 Darkstar Dev Teams | ||
|
|
||
| This program is free software: you can redistribute it and/or modify | ||
| it under the terms of the GNU General Public License as published by | ||
| the Free Software Foundation, either version 3 of the License, or | ||
| (at your option) any later version. | ||
|
|
||
| This program is distributed in the hope that it will be useful, | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| GNU General Public License for more details. | ||
|
|
||
| You should have received a copy of the GNU General Public License | ||
| along with this program. If not, see http://www.gnu.org/licenses/ | ||
|
|
||
| =========================================================================== | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <chrono> | ||
| #include <cstdint> | ||
| #include <string> | ||
| #include <string_view> | ||
|
|
||
| namespace version | ||
| { | ||
| // Git information (inline constexpr definitions) | ||
| [[nodiscard]] constexpr std::string_view GetGitSha() noexcept { return "@GIT_SHA1@"; } | ||
| [[nodiscard]] constexpr std::string_view GetGitBranch() noexcept { return "@GIT_BRANCH@"; } | ||
| [[nodiscard]] constexpr std::string_view GetGitDate() noexcept { return "@GIT_DATE@"; } | ||
| [[nodiscard]] constexpr std::string_view GetGitCommitSubject() noexcept { return "@GIT_COMMIT_SUBJECT@"; } | ||
|
|
||
| // Enhanced version information | ||
| [[nodiscard]] std::string GetVersionString(); | ||
| [[nodiscard]] std::string GetFullVersionString(); | ||
| [[nodiscard]] std::string GetBuildInfo(); | ||
|
|
||
| // Version components | ||
| struct VersionInfo | ||
| { | ||
| std::uint16_t major; | ||
| std::uint16_t minor; | ||
| std::uint16_t patch; | ||
| std::string_view git_sha; | ||
| std::string_view git_branch; | ||
| std::string_view build_date; | ||
| std::string_view compiler_version; | ||
| std::string_view cmake_version; | ||
| }; | ||
|
|
||
| [[nodiscard]] constexpr VersionInfo GetVersionInfo() noexcept; | ||
|
|
||
| // Runtime information | ||
| [[nodiscard]] std::string GetRuntimeInfo(); | ||
| [[nodiscard]] std::chrono::system_clock::time_point GetBuildTimestamp(); | ||
|
|
||
| // Feature flags | ||
| [[nodiscard]] constexpr bool HasFeature(std::string_view feature) noexcept; | ||
| [[nodiscard]] std::string GetEnabledFeatures(); | ||
|
|
||
| } // namespace version |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generated file should not be tracked in version control. The src/common/version.h file should be added to .gitignore since it's automatically generated from version.h.in by CMake.