Skip to content
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

Git command warning #630

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Git command warning #630

merged 1 commit into from
Mar 10, 2021

Conversation

prarit
Copy link
Collaborator

@prarit prarit commented Mar 10, 2021

A few users have been asking about lab's purpose relative to git. The current description of the tool "A Git Wrapper for GitLab" is not accurate and should be updated to reflect that lab is a command line utility for GitLab.

Also, output a warning for git wrapper users -- we know this code is going away in the future and we should be encouraging people to not write scripts that depend on lab's git wrapper.

Signed-off-by: Prarit Bhargava prarit@redhat.com

cmd/root.go Outdated
@@ -228,6 +222,7 @@ func Execute() {
}
}
if !knownFlag {
fmt.Println("Warning: lab's git passthrough command support will be removed in a later release.")
Copy link
Collaborator

@rsteube rsteube Mar 10, 2021

Choose a reason for hiding this comment

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

@prarit shouldn't these be written to stderr?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh of course. Thanks for catching that.

@bmeneg
Copy link
Collaborator

bmeneg commented Mar 10, 2021

I just merged #629, could you rebase this PR to consider the merge code? :)
Also, you'll need to tweak the root_test code, since it considers the old help message.

lab is a command line utility for GitLab.  It does wrap around git
currently, however, that isn't lab's primary purpose.

Update lab's description.

Additional fix: Remove some dead code.
Additional fix: Warn git wrapper users that git wrap functionality will
eventually be removed.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
@prarit prarit force-pushed the git_command_warning branch from b48f078 to 6ff246b Compare March 10, 2021 17:42
@codecov
Copy link

codecov bot commented Mar 10, 2021

Codecov Report

Merging #630 (6ff246b) into master (8b27899) will increase coverage by 0.07%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #630      +/-   ##
==========================================
+ Coverage   56.14%   56.21%   +0.07%     
==========================================
  Files          73       73              
  Lines        4613     4609       -4     
==========================================
+ Hits         2590     2591       +1     
+ Misses       1772     1767       -5     
  Partials      251      251              
Impacted Files Coverage Δ
cmd/root.go 57.77% <50.00%> (+3.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b27899...6ff246b. Read the comment docs.

Copy link
Collaborator

@bmeneg bmeneg left a comment

Choose a reason for hiding this comment

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

LGTM

@prarit prarit merged commit 73fd2bc into zaquestion:master Mar 10, 2021
JohnVillalovos added a commit to JohnVillalovos/lab that referenced this pull request Dec 9, 2021
Based on zaquestion#630, it appears that the project no longer wants people to
use lab as a replacement for the git command. So we shouldn't
recommend to people that the do `alias git=lab`.

Update README.md to remove this recommendation.
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.

3 participants