Skip to content

Commit 9907f02

Browse files
committed
fix snap build
1 parent 0e7e9db commit 9907f02

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

snapcraft.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
name: dumbproxy
2-
version: '1.21.0'
32
summary: Simple, scriptable, secure forward proxy.
43
description: >
54
Dumbest HTTP proxy ever. See documentation for details:
65
https://github.com/SenseUnit/dumbproxy/blob/master/README.md
76
87
confinement: strict
9-
base: core18
8+
base: core22
9+
adopt-info: dumbproxy
1010

1111
parts:
1212
dumbproxy:
1313
plugin: go
14-
go-importpath: github.com/SenseUnit/dumbproxy
15-
source: .
14+
build-snaps: [go/latest/stable]
1615
build-packages:
17-
- gcc
16+
- make
17+
- git-core
18+
source: https://github.com/SenseUnit/dumbproxy
19+
source-type: git
20+
override-pull: |
21+
craftctl default
22+
craftctl set version="$(git describe --long --tags --always --match=v*.*.* | sed 's/v//')"
23+
override-build:
24+
make &&
25+
cp bin/dumbproxy "$SNAPCRAFT_PART_INSTALL"
26+
stage:
27+
- dumbproxy
1828

1929
apps:
2030
dumbproxy:

0 commit comments

Comments
 (0)