Commit Graph

18 Commits

Author SHA1 Message Date
Vanes Angelo
900cb4f7c1 Upgrade to AWS SDK v2 (#1938) (#1950)
Upgrades the AWS SDK to v2. AWS S3 bucket urls will now error if they are not prefixed with a schema (example: https://).
2024-04-28 21:38:42 -07:00
Nicholas Wiersma
d932d50232 chore: lint code with golangci-lint (#1828)
* feat: add golangci-lint linting

* chore: fix linter issues

* feat: add linting into the workflow

* docs: update lint docs

* fix: cr suggestions

* fix: remove old formatting and vetting scripts

* fix: add docker make target

* fix: action go caching

* fix: depreciated actions checkout version

* fix: cr suggestion

* fix: cr suggestions

---------

Co-authored-by: Manu Gupta <manugupt1@gmail.com>
2023-02-24 20:39:17 -08:00
Rob Lee
567c939ac4 Finish Removing golint (#1746)
* Set GO111MODULE to auto in golint script– #1743

As mentioned in #1743 the Go modules environment flag is set to `off`
in the script which appears to cause a warning message for each module
of the codebase that it is "not in GOROOT".

Set to `auto` as this allows the same build to be run the original way
should someone choose to delete the `go.mod` file from the project root.

* Remove redundant code – golint script

Go 1.17 ignores `GO111MODULE` and there are no directories in the
project root called `mock`.

* Replace `golint` with `go vet`

`golint` is deprecated (and frozen) replace with the current `go vet`.
This reported one issue on `main` branch:
```pkg/stash/with_etcd.go:33:28:
loop variable ep captured by func literal```

Fixed loop variable capture with extraction to parameterised anonymous
function passed loop variable and passed in to `errgroup.Go` call.

* Finish Removing `golint`

Removed remaining references to `golint` in dev doc, Makefile,
bash scripts, and powershell build scripts.
Removed `get_dev_tools.sh` and `get_dev_tools.ps1` as they only install
the removed `golint` package.
2021-12-11 11:09:03 -05:00
Aaron Schlesinger
c2c5daf61a Switching to using the main default branch (#1628)
* Switching to using the main default branch

* changing links to main branch, not master branch

* Changing a few links to relative

* Bumping chart version

Co-authored-by: Marwan Sulaiman <marwan.sameer@gmail.com>
2020-06-15 16:44:37 -04:00
Kenshi Kamata
667b9fdf65 Fix typo (#1358)
* fix duplicated 'the'

* fix typo found by misspell
2019-08-27 10:55:09 -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
Manu Gupta
81547dd19e reduce sleep time in e2e between http calls (#994)
* reduce sleep time

* Check for version faster

* sleep to 1 sec to reduce hits

* Update scripts
2018-12-18 12:52:57 +01:00
marpio
2f41b2f81b Update test_unit.ps1 so that it matches the bash version. (#799)
* add default env vars

* export GO111MODULE var

* rm dups
2018-10-29 14:15:19 +01:00
Gabriel Schneider
ccf59405cf Updated according to test_unit.sh (#805) 2018-10-23 16:04:59 -07:00
marpio
bcc896f226 rename example to dev and rm test config (#691) 2018-09-20 16:38:08 -04:00
marpio
29b6b6ffab Minio conf + tests refactoring (#680)
* cleanup tests and change minio port

* fix cleanup

* cleanup

* fix config test

* add comment to travis

* revert to generic minio addr

* fix test

* switch to test config

* adapt timeouts

* use example config

* fix test... again

* add new lines
2018-09-20 21:31:21 +02:00
marpio
d6a1cdac84 do not read .env file , sync with the bash version (#689) 2018-09-20 16:23:45 +02:00
marpio
f25c427239 Fix for Windows 10 (#648)
* ps: add cdefault conf

* init - add config

* add required env vars for win10

* update test_e2e.ps1 to use go build -mod=vendor
2018-09-13 13:57:37 -07:00
Komu Wairagu
748ed7dda9 Remove dep files (#378)
* remove vendor directory
athens will be using Go modules for dependency management

* remove Gopkg.* files. athens will be using Go modules for dependency management

* add note about Go version required for developing on Athens
To use Go modules for dep management, you require atleast Go version 1.11

* update documentation regarding supported version of Go

* dont install dep

* re-add vendor directory
go mod vendor

* use vendored directory to carry out Go commands

* remove the use of -mod=vendor
this is necessary because;
1. we are running ci in a travis with a matrix of GO111MODULE=on & GO111MODULE=auto
and -mod=vendor is not available as an option in GO111MODULE=auto(inside GOPATH)

* rm vendor

* run go mod tidy
this is beacuse the master branch had changes to Gopkg.lock

* match gopkg.in/go-playground/validator.v9 version
with master branhc

* go mod tidy

* go mod vendor
so as to vendor the new changes that were added in master

* set GO111MODULE=on globally in ci

* build with -mod=vendor when building docker image

* use -mod=vendor to avoid getting deps from vcs in ci

* use -mod=vendor in .drone.yml

* use go1.11 in drone.yml
2018-09-02 11:54:42 -04:00
lpdyck
c4417371ef Fix powershell scripts (#615)
* add check_deps.ps1

* fix check_gofmt select-string regex pattern

* capitalize JoinPath

* fix typo

* fail check_deps.ps1 on error
2018-09-01 11:59:55 +02:00
Komu Wairagu
69a5340c91 update to go1.11 (#563)
* update travis to Go 1.11

* update check_deps ci script
ci for checking dependencies should now check Go module files and use go mod verify

* remove uneeded comment

* set GO111MODULE

* debug GO111MODULE propagation

* rm dep installation

* debug GO111MODULE propagation

* rm debug statements

* use Go point releases in ci

* remove references to Go1.11 RCs

* run ci with GO111MODULE auto and also on

* use matrix
2018-08-28 08:46:12 +02:00
marpio
1de9ea4c2a Powershell - clean up ENV after tests (#568)
* clean up ENV after tests
2018-08-26 22:40:28 +02:00
marpio
fa16c6950b Powershell scripts (#525)
* port scripts to ps

* remove ps core features

* init script

* make it work on ps 5.0

* sync with make file

* cleanup

* cleanup

* review feedback

* newline
2018-08-24 19:44:36 +02:00