Skip to content

use two snapcraft files - #759

Merged
lidaobing merged 1 commit into
mainfrom
two_snapcraft
Nov 23, 2026
Merged

lidaobing merged 1 commit into
mainfrom
two_snapcraft

Conversation

@lidaobing

@lidaobing lidaobing commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary by Sourcery

Support branch-specific Snap packaging by introducing dedicated main and 0.9 Snapcraft configurations.

New Features:

  • Add separate Snapcraft configurations for the 0.9 branch and the main branch.

Enhancements:

  • Configure branch-specific Snap packaging, including the 0.9 build dependencies and runtime permissions.

Chores:

  • Make the default Snapcraft configuration select the 0.9 packaging definition.

@lidaobing
lidaobing requested a balanced review from Copilot November 23, 2026 02:45
@sourcery-ai

sourcery-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add separate Snapcraft manifests for the 0.9 branch and main, and make the default manifest select the 0.9 configuration.

  • snap/snapcraft-0.9.yaml L1-54
  • snap/snapcraft-main.yaml L1-49
  • snap/snapcraft.yaml L1

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@lidaobing
lidaobing marked this pull request as ready for review November 23, 2026 02:45
@lidaobing
lidaobing merged commit 7fa7e9e into main Nov 23, 2026
17 of 18 checks passed
@lidaobing
lidaobing deleted the two_snapcraft branch November 23, 2026 02:46
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.72%. Comparing base (ac5afb2) to head (88aad84).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #759      +/-   ##
==========================================
+ Coverage   52.68%   52.72%   +0.03%     
==========================================
  Files          71       71              
  Lines        9036     9036              
==========================================
+ Hits         4761     4764       +3     
+ Misses       4275     4272       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The snap lacks the network-bind plug needed for TCP file transfers in both manifests and a locale layout binding needed to load translations in the main snap.

2 open issues
What changed in this PR

This PR separates iptux’s Snap packaging into dedicated main and 0.9 configurations, preserving each code line’s dependencies and runtime settings.

Changes:

  • Add a main recipe using /usr with a layout binding for application resources.
  • Add a recipe targeting iptux-0-9, with a Snap-specific installation prefix, glog dependencies, and Unity integration.
File Description
snap/​snapcraft-main.yaml Defines Snap packaging for the main code line.
snap/​snapcraft-0.9.yaml Defines branch-specific packaging for the 0.9 release line.

Review effort: Balanced

Comment thread snap/snapcraft-main.yaml
Comment on lines +9 to +10
/usr/share/iptux:
bind: $SNAP/usr/share/iptux
Comment thread snap/snapcraft-main.yaml
extensions: [gnome]
slots:
- dbus-iptux
plugs: [home, network, gsettings]
@sonarqubecloud

Copy link
Copy Markdown

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