Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-17Fix fips builds for Golang 1.19DJ Mountney
2022-05-04Remove local .GOPATHAlessio Caiazza
2022-04-28Replace make setup with go run and version suffixesfeistel
Changelog: other
2022-04-28Remove CGO_ENABLED var from makefilesfeistel
2022-04-28Cleanup makefiles and remove outdated tasksfeistel
2022-04-27Use labkit for fips checkVishal Tak
Changelog: changed
2022-04-18Add compile time flag for building in FIPSVishal Tak
2022-03-31Clean makefile and add runtime check for fipsbuild-fipsVishal Tak
2022-03-28Add FIPS supportVishal Tak
Changelog: added
2022-02-06build: don't skip mockgen during cisetup taskfeistel
2022-02-06ci: add mocks-check task to validate mocksfeistel
2022-02-04Merge branch 'test/move-mocks' into 'master'Vladimir Shushlin
test: move mocks to their own package See merge request gitlab-org/gitlab-pages!671
2022-01-27Merge branch 'bvl-add-gnu-build-id' into 'master'Alessio Caiazza
Add a Gnu build-id to gitlab-pages binary See merge request gitlab-org/gitlab-pages!669
2022-01-26Add a Gnu build-id to gitlab-pages binaryBob Van Landuyt
By default go binaries only include a Go build-id. Which is deterministic and unique. They don't include a Gnu build-id that should have the same properties. The Gnu build-id is used by several observably tools including perf. Having a Gnu build-id allow these tools to uniquely identify a binary and avoid conflicts when resolving debug symbols for those binaries. We're generating a Gnu build-id from the Go build-id, that way we're sure to also have a deterministic and unique build-id. We do this by compiling the binary once, getting the Go build-id from that, and then re-building including a Gnu build-id.
2022-01-26test: move mocks to their own packagefeistel
2022-01-24test: add mocked resolverfeistel
2022-01-24fix: fix client_stub mock pathJaime Martinez
2022-01-24refactor: migrate client stub to mockgenfeistel
2021-11-03build: add cisetup make taskfeistel
2021-09-09test: update source mock to use mockgenfeistel
2021-08-25build: move tools/dev dependencies to a separate go.modfeistel
2021-04-21Fix permission error by using native go command in make cleanfeistel
2021-03-26Add note about tools.goJaime Martinez
2021-03-25Remove .GOPATH symlinksJaime Martinez
Simplifies Makefiles to not use `.GOPATH` symlink. Updates `test.yaml` to reuse the Go cache in between jobs instead of removing and downloading all the dependencies for every job. Changelog: other
2020-12-07Use junit reportJaime Martinez
2020-08-10Control go install output with GOBINJacob Vosmaer
2020-06-19Set the continuous_profiler_stackdriver build tagCraig Miskell
To enable continuous profiling, we need the tag to be set, otherwise the null profiler gets included instead, and it does nothing. See https://gitlab.com/gitlab-org/labkit/blob/master/monitoring/null_profiler.go#L1 and https://gitlab.com/gitlab-org/labkit/blob/master/monitoring/profiler.go#L1
2020-05-28Use custom code_quality job inspired by the runnerJaime Martinez
2020-05-28Add lint and lint-docker rules to MakefileJaime Martinez
Remove references to ./bin/golint, ./bin/gocycle and remove _support/ directory. Add formatting rule to .golangci.yml for goimports and local imports.
2020-05-28Add .golangci.yml linter configurationJaime Martinez
As part of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/385 we have introduced the use of a custom `.golangci.yml` file with some custom rules for linting. This replaces the need of downloading and using `golint`, `gofmt` `go vet` and `gocyclo` manually. We take advantage of the custom `golangci-lint` docker image as stated in the [Automatic lintinb] (https://docs.gitlab.com/ee/development/go_guide/#automatic-linting) section of the Go standards and style guidelines. This iteration enables a subset of linters, with the remaining of them enabled on a separate MR as described in the issue above. The main changes introduced by this linter include: - gosec: potential hardcoded credentials - goconst: DRY by declaring and using constants - gosimple: reduce statements complexity and improve return statements
2020-02-05Freeze tools versionAlessio Caiazza
2019-09-26Add support for previewing artifacts that are not publicTuomo Ala-Vannesluoma
Remove some duplicate logic on Auth module Separate handling artifact to own handlers package Unit test handlers by mocking auth and artifact modules Add generate-mock step to Makefile Use additional handler func to simplify TryMakeRequest return type Always try with token if exists Do not log RequestURI, log path only Remove not used logRequest func
2019-08-19Explicitly use -buildmode=exe in the MakefileNick Thomas
Pages has a built-in chroot mechanism which relies on the Pages binary being a proper statically-compiled binary with no need for a linker to run. For most go packages, this is the default when `CGO_ENABLED=0` is chosen. However, Arch Linux has a `go-pie` distribution of Go that changes the default build mode so they produce position-independent executables by default. These are still statically compiled, but operate by compiling the Go application code into a relocatable library, and statically compiling that library with a stub executable that jumps into the relocated code. On Linux, this produces a "type DYN" ELF instead of a "type EXEC" ELF, and requires a linker to be invoked. This is incompatible with the chroot mode, and - since Go is a managed language, and since we disable cgo in Pages - doesn't increase security as far as I can tell. Fixing Pages to work with `-buildmode=pie` seems too difficult as long as we include chroot support, so explicitly specify `-buildmode=exe` to produce a working binary when compiling under go-pie instead.
2019-07-10Revert "chore: vendor complete dependency tree"Max Wittig
This reverts commit 27bd4d83cade6a721330e8583874e7c715bf3a26.
2018-10-24Remove a workaround for golintNick Thomas
2018-04-23Work around golang.org/x/lint download troubleJacob Vosmaer (GitLab)
2017-09-29Rework the Makefile so "make" runs outside a GOPATH. Update CI to suitNick Thomas