Skip to content

bump BSUP version number to 1#6674

Merged
mccanne merged 2 commits intomainfrom
bsup-version
Feb 27, 2026
Merged

bump BSUP version number to 1#6674
mccanne merged 2 commits intomainfrom
bsup-version

Conversation

@mccanne
Copy link
Collaborator

@mccanne mccanne commented Feb 27, 2026

This commit changes the BSUP version number from 0 to 1 and expands the version number bits from 0 to 7. There is currently no backward compatibility with version 0 and instead an error will be reported when trying to read old BSUP files.

This commit changes the BSUP version number from 0 to 1 and
expands the version number bits from 0 to 7.  There is currently
no backward compatibility with version 0 and instead an error
will be reported when trying to read old BSUP files.
Comment on lines +24 to +25
const BSUP_VERSION = 1
const BSUP_MAGIC = "BSUP"
Copy link
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
const BSUP_VERSION = 1
const BSUP_MAGIC = "BSUP"
const BSUPVersion = 1
const BSUPMagic = "BSUP"

version = int(code & 0x7f)
}
if version != BSUP_VERSION {
return fmt.Errorf("BSUP version mismatch: expected %d found %d", BSUP_VERSION, version)
Copy link
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
return fmt.Errorf("BSUP version mismatch: expected %d found %d", BSUP_VERSION, version)
return fmt.Errorf("BSUP version mismatch: expected %d, found %d", BSUP_VERSION, version)

@mccanne mccanne merged commit ed3289b into main Feb 27, 2026
4 checks passed
@mccanne mccanne deleted the bsup-version branch February 27, 2026 21:57
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