mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix(release): lightweight tags in the snap build, version fallback, man pages for help topics, draft the 1.0.0 changelog
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
9 files changed
+100
-12
No files matched your search
@@ -111,7 +111,7 @@ type Client struct {
|
||||
}
|
||||
|
||||
// UserAgent identifies tea to instances, proxies, and server logs.
|
||||
var UserAgent = "tea/" + version.Version + " (" + runtime.GOOS + "/" + runtime.GOARCH + ")"
|
||||
var UserAgent = "tea/" + version.Current() + " (" + runtime.GOOS + "/" + runtime.GOARCH + ")"
|
||||
|
||||
type userAgentTransport struct{ base http.RoundTripper }
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ func TestTransportBoundsOnlySetupAndSendsUserAgent(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, response.Body.Close())
|
||||
}
|
||||
want := "tea/" + version.Version + " (" + runtime.GOOS + "/" + runtime.GOARCH + ")"
|
||||
want := "tea/" + version.Current() + " (" + runtime.GOOS + "/" + runtime.GOARCH + ")"
|
||||
require.Equal(t, []string{want, want}, agents)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user