Skip to content

lfshttp: fix auth response ExpiresIn data type - #6200

Merged
chrisd8088 merged 2 commits into
git-lfs:mainfrom
aymanbagabas:expiresin-int64
Feb 19, 2026
Merged

chrisd8088 merged 2 commits into
git-lfs:mainfrom
aymanbagabas:expiresin-int64

Conversation

@aymanbagabas

Copy link
Copy Markdown
Contributor

The git config value "lfs.defaulttokenttl" can be larger than max int on i386 systems. We need to change this field to int64/time.Duration so that it can hold larger values.

This commit also updates the Environment interface and add Int64 method to support fetching int64 values from git config.

Fixes: charmbracelet/soft-serve#781

@aymanbagabas
aymanbagabas requested a review from a team as a code owner February 3, 2026 07:38
@aymanbagabas aymanbagabas changed the title lfshttp: change auth response ExpiresIn data type to int64/time.Duration lfshttp: fix auth response ExpiresIn data type Feb 3, 2026

@chrisd8088 chrisd8088 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks very much for this enhancement!

I made a few minor suggestions, but the core functional changes all look great. Thanks again for this improvement!

Comment thread config/delayed_environment.go Outdated
Comment thread config/environment.go Outdated
Comment thread config/environment.go Outdated
Comment thread lfshttp/client.go Outdated
Comment thread lfshttp/client.go Outdated
@aymanbagabas

Copy link
Copy Markdown
Contributor Author

I made a few minor suggestions, but the core functional changes all look great. Thanks again for this improvement!

I've updated the PR with the suggested changes 🙂

The git config value "lfs.defaulttokenttl" can be larger than max int on
i386 systems. We need to change this field to int64/time.Duration so
that it can hold larger values.

This commit also updates the Environment interface and add Int64 method
to support fetching int64 values from git config.

Fixes: charmbracelet/soft-serve#781
Co-authored-by: Chris Darroch <chrisd@apache.org>
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>

@chrisd8088 chrisd8088 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks great, thank you!

@chrisd8088
chrisd8088 merged commit f49a7d7 into git-lfs:main Feb 19, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testscript fails on i686

2 participants

Sponsor
SponsoredKunjungi sekarang
Promo