apache / apache/maven-release

release:prepare should check for remote/local being in sync first

Open
#1,391 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
128
Forks
145
Avg merge
7h 7m
Merged PRs (30d)
3

Description

### New feature, improvement proposal

Currently release:prepare only breaks in case of sync issues between remote/local once it tries to push at the very end. This check should be performed first to fail faster in that case (before any modifications to local working directory have been applied).
Although there is a slight chance that between checking and pushing there are additional commits being added this should capture non-pulled changes for most of the cases.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the implementation and tests for the release:prepare goal, then trace where remote/local synchronization is currently detected during the release flow. The change is complete when an out-of-sync repository fails before local working-directory modifications, with tests covering that early failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.