Add a task to get proto from a branch
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
13
Taskfile.yml
13
Taskfile.yml
@@ -10,3 +10,16 @@ tasks:
|
||||
desc: Run web-server
|
||||
cmd: flutter run -d web-server --web-port 8080
|
||||
silent: true
|
||||
|
||||
get-proto-from-branch:
|
||||
desc: Get the latest version of generated protobuf code from the branch
|
||||
silent: true
|
||||
vars:
|
||||
WORKDIR:
|
||||
sh: mktemp -d
|
||||
cmds:
|
||||
- git clone git@gitea.badhouseplants.net:softplayer/softplayer-dart-proto.git '{{ .WORKDIR }}'
|
||||
- git -C '{{ .WORKDIR }}' checkout '{{ .CLI_ARGS }}'
|
||||
- yq -i ".dependencies.softplayer_dart_proto.git.ref = \"$(git -C '{{ .WORKDIR }}' rev-parse HEAD)\"" pubspec.yaml
|
||||
- rm -rf '{{ .WORKDIR }}'
|
||||
- flutter pub get
|
||||
|
||||
@@ -276,8 +276,8 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: "743c0a79dd75562ddf6a0e9b68d0acfbc275dea3"
|
||||
resolved-ref: "743c0a79dd75562ddf6a0e9b68d0acfbc275dea3"
|
||||
ref: d7bdb92492d6986db4ade9e81ff088dee2a6757b
|
||||
resolved-ref: d7bdb92492d6986db4ade9e81ff088dee2a6757b
|
||||
url: "https://gitea.badhouseplants.net/softplayer/softplayer-dart-proto.git"
|
||||
source: git
|
||||
version: "1.0.0"
|
||||
|
||||
@@ -3,17 +3,15 @@ description: |
|
||||
An web interface for managing softplayer applications and environments
|
||||
publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: ^3.11.5
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
softplayer_dart_proto:
|
||||
git:
|
||||
url: https://gitea.badhouseplants.net/softplayer/softplayer-dart-proto.git
|
||||
ref: 743c0a79dd75562ddf6a0e9b68d0acfbc275dea3
|
||||
ref: d7bdb92492d6986db4ade9e81ff088dee2a6757b
|
||||
cupertino_icons: ^1.0.9
|
||||
grpc: 5.1.0
|
||||
http: ^1.6.0
|
||||
@@ -24,7 +22,6 @@ dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
flutter_lints: ^6.0.0
|
||||
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
assets:
|
||||
|
||||
Reference in New Issue
Block a user