Skip to content

Add deprecation warning for Bazaar (bzr) support#119

Merged
mattfarina merged 5 commits intomasterfrom
copilot/deprecate-bzr-support
Dec 2, 2025
Merged

Add deprecation warning for Bazaar (bzr) support#119
mattfarina merged 5 commits intomasterfrom
copilot/deprecate-bzr-support

Conversation

Copy link
Contributor

Copilot AI commented Dec 1, 2025

Bazaar is officially end-of-life and unmaintained. Users need to be warned when using bzr repositories.

Changes

  • Deprecation warning in NewBzrRepo(): Logs warning via existing Logger mechanism before any operations
  • Test coverage: TestBzrDeprecationWarning verifies the warning is logged correctly

Example

vcs.Logger = log.New(os.Stdout, "[VCS] ", log.LstdFlags)
repo, err := vcs.NewBzrRepo("https://launchpad.net/project", "/tmp/repo")
// Output: [VCS] WARNING: Bazaar (bzr) is deprecated and no longer maintained. 
//         Support for bzr may be removed in a future version.

The warning appears regardless of whether bzr is installed, ensuring all users attempting to use bzr are notified of its deprecated status.

Original prompt

This section details on the original issue you should resolve

<issue_title>Deprecate bzr</issue_title>
<issue_description>bzr has not been developed in years and is officially end of life. Without removing bzr support, it needs to be marked as deprecated with a warning being logged when it's used.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Deprecate bzr and log warning on use Add deprecation warning for Bazaar (bzr) support Dec 1, 2025
Copilot AI requested a review from mattfarina December 1, 2025 21:06
Copilot AI and others added 3 commits December 2, 2025 12:03
Co-authored-by: mattfarina <62991+mattfarina@users.noreply.github.com>
Co-authored-by: mattfarina <62991+mattfarina@users.noreply.github.com>
@mattfarina mattfarina force-pushed the copilot/deprecate-bzr-support branch from 07bcdfc to c5c1132 Compare December 2, 2025 17:09
Signed-off-by: Matt Farina <matt.farina@suse.com>
@mattfarina mattfarina marked this pull request as ready for review December 2, 2025 17:41
Signed-off-by: Matt Farina <matt.farina@suse.com>
@mattfarina mattfarina merged commit 645e870 into master Dec 2, 2025
6 checks passed
@mattfarina mattfarina deleted the copilot/deprecate-bzr-support branch December 2, 2025 17:56
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.

Deprecate bzr

2 participants