summaryrefslogtreecommitdiff
path: root/internal/command/receivepack/receivepack_test.go
Commit message (Collapse)AuthorAgeFilesLines
* go: Bump major version to v14Patrick Steinhardt2022-07-051-5/+5
| | | | | | | | | | | | | While gitlab-shell currently has a major version of v14, the module path it exposes is not using that major version like it is required by the Go standard. This makes it impossible for dependents to import gitlab-shell as a dependency without using a commit as version. Fix this by changing the module path of gitlab-shell to instead be `gitlab.com/gitlab-org/gitlab-shell/v14` and adjust all imports accordingly. Changelog: fixed
* Replace cleanup functions with t.CleanupIgor Drozdov2021-03-171-7/+5
| | | | | In this case we don't need to propagate cleanup function. It simplifies the code.
* Make it possible to propagate correlation ID across processesStan Hu2020-09-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, gitlab-shell did not pass a context through the application. Correlation IDs were generated down the call stack instead of passed around from the start execution. This has several potential downsides: 1. It's easier for programming mistakes to be made in future that lead to multiple correlation IDs being generated for a single request. 2. Correlation IDs cannot be passed in from upstream requests 3. Other advantages of context passing, such as distributed tracing is not possible. This commit changes the behavior: 1. Extract the correlation ID from the environment at the start of the application. 2. If no correlation ID exists, generate a random one. 3. Pass the correlation ID to the GitLabNet API requests. This change also enables other clients of GitLabNet (e.g. Gitaly) to pass along the correlation ID in the internal API requests (https://gitlab.com/gitlab-org/gitaly/-/issues/2725). Fixes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/474
* Move gitlabnet client to client packagejc-refactor-gitlabnet-clientJohn Cai2020-05-041-1/+1
|
* Extract customaction into a separate moduleid-extract-custom-action-in-separate-moduleIgor Drozdov2020-04-141-4/+18
| | | | We'll reuse this module for uploadpack in the future
* Rename import pathsNick Thomas2019-10-181-5/+5
|
* Move go code up one levelNick Thomas2019-10-181-0/+32