gitpod/components/gitpod-protocol/go/generate-mock.sh
2022-12-08 13:05:19 -03:00

18 lines
482 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License.AGPL.txt in the project root for license information.
set -x
go install github.com/golang/mock/mockgen@v1.6.0
mockgen \
-package=protocol \
-self_package=github.com/gitpod-io/gitpod/gitpod-protocol \
-source=gitpod-service.go > mock.go_tmp > mock.go_tmp
mv mock.go_tmp mock.go
leeway run components:update-license-header