Commit Graph

662 Commits

Author SHA1 Message Date
marpio
b2bcdce18c fix List call - token should be on 3. position (#1212) v0.4.0 2019-05-08 17:56:29 -07:00
Marwan Sulaiman
0cac0edbf1 actions: support proxying sum db urls (#1208)
* 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
2019-05-08 17:09:07 -07:00
Rimas Mocevicius
e7d7749e14 update chart icon (#1210) 2019-05-08 14:06:35 -07:00
Rimas Mocevicius
abcc0a6ac1 chart, fix workers (#1209)
* chart, fix workers

* fix spacing

* add owners file

* add maintainers

* fix maintainers
2019-05-07 13:42:37 -07:00
marpio
8e5b6981d3 Remove dummy mod dir (#1121) 2019-05-03 22:52:36 +02:00
Rimas Mocevicius
2affe53ec8 add chart linting step to drone pipeline (#1207) 2019-05-03 13:36:41 -07:00
Pascal Dierich
4c2bd65d69 Makefile: Add help cmd to display documented cmds. (#1205)
The help cmd is copied from Jess Frazelle's (jessfraz)
dotfile repo, see https://github.com/jessfraz/dotfiles/blob/master/Makefile#L68
2019-05-03 16:43:03 +02:00
Rimas Mocevicius
30b9ea0b6c [chart] add support to configure ssh-secured git servers (#1204)
* add support to configure ssh-secured git servers

* default upstreams to off
2019-05-02 13:03:35 -07:00
Scott Lee
fd1cd2e0b1 Refer to a consistent minimum Go version (#1201)
* Refer to a consistent minimum Go version

* Refer to a consistent minimum Go version

* Change Go version to v1.12
2019-05-02 12:47:54 -07:00
Aaron Schlesinger
f969033075 Adding a way to run an Athens in docker (#1082)
* Adding a way to run an Athens in docker

* adding phonies 😄

* fixing docs

to point to the right Makefile target

* s/post/port

* Making docs a little more clear

And better formatted
2019-05-02 21:28:54 +02:00
Aaron Schlesinger
0138fea598 Adding parameterized ATHENS_GO_GET_WORKERS (#1188) 2019-04-30 19:59:59 -07:00
marpio
aa5e883b60 add appveyor (#1198) 2019-04-30 12:29:37 -07:00
Scott Lee
a327db006a Clear up language and remove duplicate content (#1202) 2019-04-30 12:14:45 -07:00
Scott Lee
3f2c99f6a2 #1149 Remove references to Buffalo (#1203)
* #1149 Remove references to Buffalo

* #1149 Add Makefile
2019-04-30 09:59:52 -04:00
dfinkel
0be1cd96f0 Add documentation about SSH_AUTH_SOCK from PR#1184 (#1185)
* Add documentation about SSH_AUTH_SOCK from PR#1184

PR#1184 added support for propagating SSH_AUTH_SOCK if it points to a
valid unix socket. As requested, add a section explaining how to use
it.

* auth documentation: replace $(pwd) with $PWD

Replace references to `$(pwd)` with `$PWD` in shell snippets and add
more quoting. This should make these snippets reasonably friendly to
currnet working directory path components containing spaces.

Note: I neither endorse nor recommend spaces in directories, but this is
an easy enough change.

This commit is leaving powershell snippets untouched as I am not
familiar with powershell's word-splitting behavior (if there is any).
2019-04-30 01:03:17 -07:00
Aaron Schlesinger
5dda2bee6c Refactoring the developer meetings page (#1178)
* adding JS files

* updating the dev meetings page

* trying to see if time zones work

this works locally but I have no idea why...

* dealing with APAC times

where it's really Friday

FEEL THE PAIN

* removing dead and commented code
2019-04-22 21:31:38 -07:00
Marwan Sulaiman
85bcef5b57 Dockerfile: wrap athens with tini (#1190) 2019-04-22 20:53:13 +02:00
Mark D
ef3d69ea4a Fix for issue #1192 (#1193)
* adding support for lower case http proxy env variables

* adding in extra blank line
2019-04-22 11:18:27 -07:00
Arpit Gogia
974077e73b Mongo go driver beta integration (#1042)
* Changed mongo.go to use new driver

* Modified mongo cataloger

* More new driver related changes

* Change lister.go

* Change saver.go

* Change imports

* Remove unnecessary Count query

* Use IndexView for indexing

* Rename ModuleStore fields

* Use map of key:sorting-order for creating the index

* Minor changes

* Use client options to configure mongo client

* Use method chaining

* gofmt changes

* Change imports

* Fix some build errors

* Use new GridFS API

* Fix more build errors

* Add Go Mongo driver to dependency modules

* Use multierror

* Leave download stream open

* Remove mgo error handling

* Copy zip instead of loading all in memory

* Use context.WithTimeout() wherever possible

* Raise KindNotFound when mod@ver isn't found

* NopCloser not needed

* Fix IndexView error

* Fix build errors

* Remove another mgo error usage

* Fix build error

* Changes according to review

* Formatting changes as per gofmt

* Modify gofmt argument to show the expected formatting (diff)

* Handle ErrNoDocument error and error arising from query execution

* Fix kind of returned error

* Minor changes

* Bug fixes

* gofmt related changes

* Minor change

* Use Insecure from MongoConfig, remove Insecure from global Config

* Remove stray print statement
2019-04-17 19:59:01 +02:00
Marwan Sulaiman
c11212ba16 pkg/config: ensure port format (#1187)
* pkg/config: ensure port format

* fix tests
2019-04-14 11:21:45 -04:00
dfinkel
a7aee5b235 pkg/module: include SSH_AUTH_SOCK in go get env (#1184)
* pkg/module: include SSH_AUTH_SOCK in go get env

When running locally, it's convenient to use a user's ssh-agent. For
that to work, we need to propagate SSH_AUTH_SOCK.

* pkg/module: Verify existence for SSH_AUTH_SOCK

SSH_AUTH_SOCK is expected to indicate a unix socket on the local
filesystem. If it isn't a unix socket (after symlink resolution) we can
ignore it. (although ssh will ignore it as well)
2019-04-09 14:54:47 -07:00
Federico Paolinelli
b5a91e8be8 Metrics (#1174)
* added datadog exporter too

* Added stop function as return parameter

* added datadog exporter too

* Added stop function as return parameter

* Removed unnecessary router parameter

* Forgot to save :-(

* Merge again
2019-04-08 13:31:40 -07:00
marpio
13d5008b87 update img to 1.12 (#1180) 2019-04-08 13:09:06 -07:00
Marwan Sulaiman
71aeca7f30 config: accept PORT env + ensure colon (#1181)
* config: accept PORT env + ensure colon

* ensure precedence
2019-04-08 12:54:25 -07:00
Rimas Mocevicius
f14707e5e5 [chart] add upstream proxy support, bump athens version (#1161)
* [chart] add upstream proxy support, bump athens version

* update chart readme and kubernetes install docs
2019-04-05 13:58:57 -07:00
Marwan Sulaiman
4a4641b66b storage/gcp: create a bucket on every test run (#1176)
* storage/gcp: create a bucket on every test run

* ensure removal

* set the strg

* remove pkg level vars

* clean up func call
2019-04-04 11:48:41 -07:00
marpio
9974c16093 pkg/stash: Add Azure Blob implementation (#1162)
* add azblob sf stasher

* use http status const

* rm line

* cleanup, comments

* add test

* fix test

* skip test it no account key provided

* fix stash

* introduce stash timeout
2019-04-01 21:53:59 -07:00
Marwan Sulaiman
c31610c1ad pkg/config: ensure env vars override defaults (#1173) 2019-04-01 10:26:16 -04:00
Marwan Sulaiman
8d46c8d026 storage/gcp: fix lister prefix (#1172)
* storage/gcp: fix lister prefix

* add slash to s3

* but really this time

* account for windows
2019-04-01 10:14:55 -04:00
Aaron Schlesinger
edd0216e09 Fixing typo in compliance test harness (#1170) 2019-03-30 14:37:12 +01:00
Aaron Schlesinger
2a2159291f Removing the line number from the config link (#1158)
Fixes https://github.com/gomods/athens/issues/1157
2019-03-29 07:40:15 +01:00
Shivaram Radhkrishna
63a06dbdeb Include path in the proxy command example (#1163)
* fix missing . in command example

* Indicate path in the proxy command example
2019-03-28 21:27:10 -07:00
Marwan Sulaiman
16c6b029ac pkg/module: include SSH environments (#1164) 2019-03-28 13:54:36 -04:00
marpio
20aeee6c76 fs: Use no. of objects for Exists check (#1143)
* fs: check for len == 3 in Exists

* fix tests

* check for PathError

* check for isnotexists err
2019-03-28 11:09:08 -04:00
marpio
33adb2bb01 check if ver exists by counting the parts (#1145) 2019-03-28 01:47:52 -04:00
Pontus Leitzler
2cc562b9b9 Replace travis build status with drone (#1159) 2019-03-26 19:03:16 -04:00
Pontus Leitzler
d9e0df8643 Config improvements - rename file & remove default (#1103)
* 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
2019-03-26 16:56:18 -04:00
David
79ef098804 docs: translate intro into spanish (#1134)
translate intro documentation into spanish - introducción en español
2019-03-26 16:42:13 -04:00
Kirill Motkov
3ff753d3c5 Improvement of len() comparisons style (#1153)
Builtin len() function can't return value smaller than zero.
2019-03-26 21:12:02 +01:00
Zhao Xiaojie
83b460b5f0 Add translation for intro (#1128)
* Translate intro index

* translate intro first-content

* translate intro protocol

* translate intro components

* Fix expression

* Fix expression

* Fix expression

* Update components.zh.md

* Update protocol.zh.md

* Update components.zh.md
2019-03-26 13:22:13 -04:00
marpio
d29efb7d61 inst go1.12 (#1150) 2019-03-20 08:59:24 +01:00
marpio
be0a8e98d9 rm buffalo question (#1141) 2019-03-19 17:09:19 -07:00
Aaron Schlesinger
b9bdbc3123 3 components instead of 4 (#1147) 2019-03-19 15:45:31 -07:00
Shivaram Radhkrishna
c59aa69848 Doc update to configure upstream proxy to fetch modules from a Go mod… (#1146)
* Doc update to configure upstream proxy to fetch modules from a Go modules repository

* review suggestions
2019-03-19 15:03:44 -07:00
marpio
58747ed290 aws s3: use no of objects for Exists check (#1142) 2019-03-19 20:56:12 +01:00
Federico Paolinelli
04c6bbed90 Filter (#1075)
* Working tests

* More tests, a bugfix (yay tests) and docs

* Changed filter description adding v prefix to versions

* Updated docs to be more precise

* More robust, changed docs

* Fixed copy paste bug
2019-03-18 22:07:27 -07:00
Pascal Dierich
2816e01ce5 pkg/paths: fix typos in err message and doc. (#1139) 2019-03-14 16:51:18 -07:00
Marwan Sulaiman
61e29b0a91 drone: add redis lock test (#1129)
* drone: add redis lock test

* update signature
2019-03-13 15:56:40 -04:00
Marwan Sulaiman
081ec9126e pkg/stash: Add GCS implementation (#1124)
* pkg/stash: Add GCS implementation

* fix docs
2019-03-13 11:07:07 -07:00
Johan Brandhorst
a79a836204 docs: update references to Go 1.11 (#1125)
* docs: update references to Go 1.11

Go 1.12 is out now, which might confuse some readers.

* docs: use version 1.12 or later
2019-03-12 16:02:01 -04:00