Skip to content

feat: [sc-29033] drop Package.resolved#348

Merged
supersonicbyte merged 2 commits intomainfrom
feature/sc-29033/remove-package-resolved-from-package
Feb 13, 2026
Merged

feat: [sc-29033] drop Package.resolved#348
supersonicbyte merged 2 commits intomainfrom
feature/sc-29033/remove-package-resolved-from-package

Conversation

@supersonicbyte
Copy link
Copy Markdown
Contributor

Description

We are dropping Package.resolved in favor of running CI jobs across multiple swift versions.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Minimal checklist:

  • I have performed a self-review of my own code
  • I have added DocC code-level documentation for any public interfaces exported by the package
  • I have added unit and/or integration tests that prove my fix is effective or that my feature works

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @supersonicbyte, 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 streamlines the dependency management process by removing the Package.resolved file. This strategic change is intended to improve the flexibility and efficiency of continuous integration workflows, allowing for more robust testing across various Swift environments without manual intervention for dependency updates.

Highlights

  • Dependency Management: The Package.resolved file has been removed to enable running CI jobs across multiple Swift versions. This change allows the Swift Package Manager to resolve dependencies dynamically based on the Swift toolchain used in CI, rather than being locked to specific versions.
Changelog
  • Package.resolved
    • Removed the file to support dynamic dependency resolution in CI.
Activity
  • No activity has occurred on this pull request yet.
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
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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.

Copy link
Copy Markdown

@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 removes the Package.resolved file to facilitate CI testing across multiple Swift versions. While testing against newer dependencies is a good goal, removing this file sacrifices reproducible builds, which can lead to unexpected build failures and inconsistencies between developer environments and CI. I've added a comment suggesting an alternative approach that maintains build reproducibility while still allowing for testing against updated dependencies.

I am having trouble creating individual review comments. Click here to see my feedback.

Package.resolved (1-68)

high

Removing Package.resolved will lead to non-reproducible builds. While the goal of testing against multiple Swift versions and newer dependencies is valid, this approach can introduce instability. Every time a developer or CI runs swift build on a clean checkout, it might fetch different versions of dependencies, potentially causing unexpected build failures or behavior changes.

I also noticed that Benchmarks/Package.resolved is not being removed. For consistency, you should decide on a single strategy for all Package.resolved files in the repository.

A better approach to achieve your goal without sacrificing reproducibility is to:

  1. Keep Package.resolved in your source control. This ensures all developers and CI jobs use the exact same dependency versions, guaranteeing reproducible builds.
  2. Create a separate, scheduled CI job (e.g., nightly or weekly) that runs swift package update to get the latest versions of dependencies.
  3. This job would then run your full test suite against these new versions.
  4. If the tests pass, the job could automatically create a pull request with the updated Package.resolved file for review and merging.

This strategy provides the best of both worlds: stable, reproducible builds for day-to-day development and a controlled process for testing and integrating dependency updates.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 13, 2026

@supersonicbyte supersonicbyte merged commit d0569c6 into main Feb 13, 2026
14 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants