-
Notifications
You must be signed in to change notification settings - Fork 299
Add a beacon frequency slot and move the offer channel to an index #1049
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
Open
NomDeTom
wants to merge
1
commit into
meshtastic:master
Choose a base branch
from
NomDeTom:beacon-frequency-slot
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+46
−8
Open
Changes from all commits
Commits
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
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.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
Repository: meshtastic/protobufs
Length of output: 8130
🏁 Script executed:
Repository: meshtastic/protobufs
Length of output: 3885
🏁 Script executed:
Repository: meshtastic/protobufs
Length of output: 11680
🌐 Web query:
Buf breaking FILE FIELD_NO_DELETE reserved field number name FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED💡 Result:
In the Buf breaking change detection system, FIELD_NO_DELETE is a rule that prevents the deletion of message fields to ensure source-code compatibility [1][2]. Because deleting a field—even if reserved—removes it from the generated source code that clients or other modules may depend on, the FILE and PACKAGE breaking categories enforce this strictly [3][4]. FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED and FIELD_NO_DELETE_UNLESS_NAME_RESERVED are more permissive variants of the FIELD_NO_DELETE rule [4][5]. These rules allow you to delete a field if the corresponding number or name (respectively) has been added to the message's reserved list [4]. These rules are typically used when you want to permit source-code breaking changes that are still wire-compatible, or when you are migrating from other tools like Protolock that follow this pattern [4][6]. To use them while still maintaining other protections from a broader category (like FILE), you must include them in your buf.yaml configuration and explicitly exclude the stricter FIELD_NO_DELETE rule [5]: version: v2 breaking: use: - FILE - FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED - FIELD_NO_DELETE_UNLESS_NAME_RESERVED except: - FIELD_NO_DELETE If you only care about wire-level compatibility, you can instead use the WIRE or WIRE_JSON categories, which automatically replace the strict FIELD_NO_DELETE with these conditional variants [3][4].
Citations:
Preserve
MeshBeaconConfig.broadcast_offer_channelor update the breaking baseline.The
FILEpreset includes strictFIELD_NO_DELETE, so reserving tag 5 and the field name does not permit this deletion. Retain a deprecated compatibility field and migrate it tobroadcast_offer_channel_index, or update the approved baseline if the breaking change is intentional.🧰 Tools
🪛 GitHub Check: build
[failure] 834-979:
Previously present field "5" with name "broadcast_offer_channel" on message "MeshBeaconConfig" was deleted.
🤖 Prompt for AI Agents
Source: Linters/SAST tools