Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure every plugins can build #109

Merged
merged 8 commits into from
Aug 21, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and validate Souin as plugins

on: [push]

jobs:
build-caddy-validator:
name: Checkout code
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
- name: Checkout code
uses: actions/checkout@v2
- name: Install xcaddy
run: |
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/xcaddy/gpg.key' | sudo apt-key add -
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/xcaddy/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-xcaddy.list
sudo apt update
sudo apt install xcaddy
- name: Build Souin as caddy module
run: cd plugins/caddy && xcaddy build --with github.com/darkweak/souin/plugins/caddy=./ --with github.com/darkweak/souin@latest=../..
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.15

require (
github.com/buraksezer/olric v0.3.11
github.com/dgraph-io/badger/v3 v3.2103.1
github.com/dgraph-io/ristretto v0.1.0
github.com/dgraph-io/badger/v3 v3.2011.1
github.com/dgraph-io/ristretto v0.0.4-0.20210122082011-bb5d392ed82d
Comment on lines +7 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downgrading Badger v3 prevents Caddy from building? That isn't due to the prior commits build failure was it? That was about an RC version of Badger v2 AFAIK.

At least when I used xcaddy I used --with to override for latest v2 release and it build successfully avoiding the same build failure error I linked which was experienced in my bug report.

There was some nice improvements in the newer releases of Badger v3, if there was another issue that you experienced with building Caddy can you reference it and any related Github issue to track?

github.com/fsnotify/fsnotify v1.4.9
github.com/go-chi/stampede v0.4.5
github.com/golang-jwt/jwt v3.2.2+incompatible
Expand Down
62 changes: 31 additions & 31 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugins/caddy/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/darkweak/souin/plugins/caddy
go 1.15

require (
github.com/caddyserver/caddy/v2 v2.4.3
github.com/caddyserver/caddy/v2 v2.4.0
github.com/darkweak/souin v1.5.2
go.uber.org/zap v1.19.0
)
Expand Down
564 changes: 248 additions & 316 deletions plugins/caddy/go.sum

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions vendor/github.com/armon/go-metrics/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/github.com/armon/go-metrics/LICENSE

This file was deleted.

91 changes: 0 additions & 91 deletions vendor/github.com/armon/go-metrics/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions vendor/github.com/armon/go-metrics/const_unix.go

This file was deleted.

13 changes: 0 additions & 13 deletions vendor/github.com/armon/go-metrics/const_windows.go

This file was deleted.

Loading