* Allow EnvList.Validate to have multiple = for GODEBUG var
* Added tests for EnvList GODEBUG.
* Made EnvList.Validate less strict, just checks for existence of one equal sign
* cmd/proxy/actions: pass NoSumPatterns to GoGetFetcher
* add gosum unit tests
* upgrade appveyor to 1.13
* fix test typo
* check appveyor version
* AppVeyor has no 1.13
* use logger
* Updated mongo init to use db name env variable.
* Updated mongo init to use coll name env var.
* Fixed merge conflict.
* Updated formatting in mongo_test.
* add support for an host in ensurePortFormat
using a host enables the ability to bind to a specific interface
* add support for an host in ensurePortFormat
using a host enables the ability to bind to a specific interface
This CL addresses issue #1177 introducing two new configuration params
allowing to activate pprof.
- `ATHENS_ENABLE_PPROF`
- `ATHENS_PPROF_PORT`
pprof won't be exposed by default.
* actions: support proxying sum db urls
* remove proxy prefix
* add docs for checksum db
* more docs
* typo
* typo
* typo
* typo
* typo
* typo
* typo
* typo
* move checksum db into its own section
* Rename config.dev.toml to config-example.toml
* Updating helm docs to point to the new helm chart repository (#1102)
* Updating helm docs to point to the new helm chart repository
Fixes https://github.com/gomods/athens/issues/1099
Follow-up to https://github.com/gomods/athens/pull/1097/files
* fixes
* Helm chart: Fix ingress setup (#1086)
* Helm chart: Fix ingress setup
The ingress part of the Helm chart contained references to
not-existing templates and values. Additionally, the deployment used
some no longer available health-check URLs which prevented it from
being marked as ready.
* Make readiness and liveness paths depend on the image.tag
* Add read from .athens.toml (from pwd, then home)
* Remove config lookup from HOME
* Revert "Rename config.dev.toml to config-example.toml"
This reverts commit 9c02956406.
* Fix comment
Fixes#1037.
envconfig can't actually support that use case, and because athens was
using the `default:` tag only for the port field, handling this manually
is the easiest and functional solution.
* rm TraceExporterURL and StatsExporter default vals
* add test
* fix test
* revert TraceExporterURL and StatsExporter changes
* improve test error msg
* ignore GoEnv since it's set in CI and dev differently
* Allow mgo.ParseURL to set [/database]
As per Michael's solution we need to be able to set the database from
either the parsed connection string, or fallback to athens if not set.
Signed-off-by: Chris M <me@christophermills.co.uk>
* Remove TimeoutDuration which was removed #928
Signed-off-by: Chris M <me@christophermills.co.uk>
* Correct conf_test to accommodate for changes
I'd missed out the addition of DefaultDBName from the test, this has now
been corrected
Signed-off-by: Chris M <me@christophermills.co.uk>
* Make sure gofmt runs automatically on this machine
Y'know simple stuff.
Signed-off-by: Chris M <me@christophermills.co.uk>
* File permissions on config files allow more restrictive setting
* Make the tests a bit more readable
* Bring back the tests dude
* Update error message
* remove else
* Add more test cases
* Change Lstat to Stat
* Add note for umask
* Make sure the permissions are 0600 or lower
* Update config file
* Do not check for windows
* Fix CI errors
* Fix CI test
* Remove inefficient assignment of variable cxt in pkg/storage/fs
* Remove inefficient assignment of variable cxt in pkg/storage/minio
* Remove inefficient assignment of variable cxt in pkg/storage/mongo
* Fix commonly misspelled English words successfully and accessible
* Remove inefficient assignment of variable cxt in pkg/download
* Remove inefficient assignment of variable cxt in pkg/module
* Add missing error checks in a few unit-test files
* Revert removal of inefficient assignment of variable cxt
The variable, although is not being used, it maintains the readability
in the functions where it’s being assigned. The removal of `cxt` in
these files may introduce errors when a new function taking these
values is called. Two other contributors agree that it’s easy to miss
this detail when passing the variable to other functions and the traces
are not being recorded.
* Modify unit-test error reporting for the config package
* Modify config test to exit when ioutil.TempFile or os.Chmod fail
* add logs
* apples and oranges
* apples and oranges
* Fix bug
* stringify mode
* fix stuff
* figure out why chmod does not work
* see what happens outside the temp folder
* Does it have a long path
* check if proper runtimes are called
* Skip tests for windows
* clean up
* Set up CI with Azure Pipelines
* trial & error
* use robocopy
* fix slash
* handle robocopy exit code
* rm goroot
* build proxy
* build & test proxy
* Skip Test_checkFilePerms on Win until issue resolved
* start minio and mongo
* do not create a new network on win 2016
* use win docker img for mongo
* download and start minio since there is no win docker img
* fix minio download & exec
* add minio access key and secret
* use new mongodb img
* fix docker-compose mongo
* trying to fix mongo tests
* ipconfig
* lets try that
* use docker inspect to get the container ip
* echo mongo container ip
* debuging docker inspect ipaddress
* set mongo env var to internal addr
* debug
* quotation is difficult
* without docker
* pass db dir
* split steps
* add some echos to know what takes so long
* cleanup
* add downloadURL var for minio and mongo
* rm windows docker compose file
* Check for file perms as provided in the conf module
* Fix whitespace
* Check for file permissions
* Use only Lstat for error handling and continue if file does not exist
* Update comments to make sure that the todo is more understandable
* conflicts resolved