Skip to content

Fix version in auto-generated .pc.#6844

Merged
waruqi merged 2 commits intoxmake-io:devfrom
Redbeanw44602:fix-pkgconfig-autogen-v
Sep 23, 2025
Merged

Fix version in auto-generated .pc.#6844
waruqi merged 2 commits intoxmake-io:devfrom
Redbeanw44602:fix-pkgconfig-autogen-v

Conversation

@Redbeanw44602
Copy link
Contributor

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Redbeanw44602, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves an issue where auto-generated pkg-config (.pc) files included version strings that were prefixed with a 'v'. The change modifies the generation logic to strip this leading 'v' character, ensuring that the version reported in these files is a clean, numeric format. This adjustment aims to enhance interoperability and prevent potential parsing issues with external tools that rely on these .pc files.

Highlights

  • Version Formatting: Standardized the version string format in auto-generated pkg-config (.pc) files by removing any leading 'v' character from the package version.
  • Pkg-config Compatibility: Improved compatibility of .pc files with other build systems and tools by ensuring version strings are purely numeric.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@Redbeanw44602 Redbeanw44602 changed the title fix version in auto-generated .pc. Fix version in auto-generated .pc. Sep 22, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly fixes an issue where auto-generated pkg-config files could contain a non-compliant version string with a 'v' prefix. The change effectively removes this prefix. My review includes one suggestion to improve the robustness of the code by handling potential nil version strings, which would prevent runtime errors.

@waruqi waruqi merged commit 964d19f into xmake-io:dev Sep 23, 2025
20 of 25 checks passed
@waruqi waruqi added this to the v3.0.4 milestone Sep 23, 2025
@Redbeanw44602 Redbeanw44602 deleted the fix-pkgconfig-autogen-v branch September 23, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants