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

Light maintenance #1

Merged
merged 7 commits into from
Mar 7, 2023
Merged

Light maintenance #1

merged 7 commits into from
Mar 7, 2023

Conversation

MichaelMure
Copy link

This PR is a form of light maintenance on this repo. Details are in each commit, but TL;DR:

  • add go module
  • add CI
  • modernize a bit the code (remove support for go1.0 and go1.2, deprecated functions)
  • make sure that the tests pass

Nobody use that anymore.
At the time of making that change, tests have been failing for a long (?) time due to
a change in golang parsing. When that code was written, fmt.Sscanf was accepting 0x and
-0x (without digit), which is why the original author also accepted it in the config parsing.
This is not the case anymore, and this commit only reflect the reality of things.
.github/test.yml Outdated Show resolved Hide resolved
Co-authored-by: Hidde Beydals <[email protected]>
@MichaelMure MichaelMure requested a review from hiddeco March 3, 2023 12:58
Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

A few nits to align with versions on go-git.

.github/test.yml Outdated Show resolved Hide resolved
.github/test.yml Outdated Show resolved Hide resolved
.github/test.yml Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@MichaelMure MichaelMure requested review from pjbgf and removed request for hiddeco March 7, 2023 12:19
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Thank you @MichaelMure 🙇

@MichaelMure
Copy link
Author

BTW, I found out about two maintained fork of gcfg:

The first one apparently has a very very nice capability: being able to edit a config file without deleting the comments a user might have put there. It would be great to cherry pick those commits. See for example git-bug/git-bug#1022 how that can cause problems.

Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

Thank you @MichaelMure!

@pjbgf pjbgf merged commit 6c58f93 into go-git:v1 Mar 7, 2023
@pjbgf
Copy link
Member

pjbgf commented Mar 7, 2023

@MichaelMure as for the changes in other forks, it would be better to ask the authors whether they want to upstream their changes.

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