You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
main
changelog-v3.8.2
pre-release-v3.8.3
release-v3.8.2
v3.8-js-sdk-only
js-server
release-v3.8
release-v3.8.1
coderwander-main
release-v3.7
release-v3.3
release-v3.2
release-v3.1
release-v3.6
release-v3.5
release-v3.4
release-v3.0
test/release-v3.3
test-v2.3.0release
test-develop
test-v3dev1
test-errcode
v3.6.1-beta.0
v3.6.0
v3.5.1-rc.1
v3.5.0
v3.5.1
v3.5.1-bate.1
v3.5.1-rc.0
v3.5.0-rc.8
v3.5.0-rc.7
v3.5.0-rc.6
v3.5.0-rc.5
v3.5.0-rc.4
v3.4.2
v3.5.0-rc.3
v3.5.0-rc.2
v3.5.0-rc.1
v3.5.0-rc.0
v3.5.0-beta.1
v3.4.0
v3.4.0-rc.1
v3.4.0-rc.0
v3.3.3-rc.5
v3.3.3-rc.4
v3.3.3-rc.3
v3.3.3-rc.2
v3.3.3-rc.1
v3.3.3-rc.0
v3.3.3-bate.4
v3.3.3-beta.1
v3.3.3-beta.0
v3.3.2
v3.3.1
v3.3.1-beta.0
v3.3.0-rc.1
v3.3.0
v3.3.0-rc.0
v3.2.2
v3.3.0-beta.4
v3.3.0-beta.3
v3.3.0-beta.2
v3.3.0-beta.1
v3.3.0-beta.0
v1.3.0-alpha.4
v3.3.0-alpha.3
v3.3.0-alpha.2
v3.3.0-alpha.1
v3.2.2-beta.4
v3.2.2-beta.3
v3.2.2-beta.2
v3.2.1
v3.2.0
v3.2.2-beta.1
v3.2.2-beta.0
v3.2.1-beta.5
v3.2.1-beta.4
v3.1.2-beta.3
v3.1.2-beta.2
v3.1.2-beta.1
v3.1.2-beta.0
v3.1.1-beta.4
v3.1.1-beta.3
v3.1.1-beta.2
v3.1.1-beta.1
v3.1.1-alpha.3
v3.1.1-alpha.2
v3.1.1-alpha.1
v3.1.0
v3.0.1-beta.6
v3.0.1-beta.5
v3.0.1-beta.4
v3.0.1-beta.3
v3.0.1-beta.2
v3.0.1-beta.1
v3.0.0
v3.0.0-rc.2
v3.0.0-alpha.1
v3.0.0-alpha.0
v1.0.0
v1.0.1
v1.0.3
v1.0.4
v1.0.5
v1.0.6
v1.0.7
v2.0.0
v2.0.1
v2.0.10
v2.0.2
v2.0.3
v2.0.5
v2.0.6
v2.0.7
v2.0.8
v2.0.9
v2.04
v2.1.0
v2.2.0
v2.3.0-rc0
v2.3.0-rc1
v2.3.0-rc2
v2.3.2
v2.3.3
v3.2.0-alpha.0
v3.2.0-rc.0
v3.2.2-alpha.0
v3.3.3-beta.2
v3.5.1-alpha.1
v3.5.1-alpha.2
v3.7.0
v3.7.1
v3.8.0
v3.8.0-rc.0
v3.8.0-rc.1
v3.8.1
v3.8.1-rc.1
v3.8.1-rc.2
v3.8.1-rc.3
v3.8.1-rc.4
v3.8.2
v3.8.2-alpha.1
v3.8.2-alpha.2
${ noResults }
35 lines
1.2 KiB
35 lines
1.2 KiB
#!/usr/bin/env bash
|
|||
# Copyright © 2023 OpenIM. All rights reserved.
|
|||
#
|
|||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|||
# you may not use this file except in compliance with the License.
|
|||
# You may obtain a copy of the License at
|
|||
#
|
|||
# http://www.apache.org/licenses/LICENSE-2.0
|
|||
#
|
|||
# Unless required by applicable law or agreed to in writing, software
|
|||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
# See the License for the specific language governing permissions and
|
|||
# limitations under the License.
|
|||
|
|||
|
|||
# This script sets up a temporary openim GOPATH and runs an arbitrary
|
|||
# command under it. Go tooling requires that the current directory be under
|
|||
# GOPATH or else it fails to find some things, such as the vendor directory for
|
|||
# the project.
|
|||
# Usage: `scripts/run-in-gopath.sh <command>`.
|
|||
|
|||
set -o errexit
|
|||
set -o nounset
|
|||
set -o pipefail
|
|||
|
|||
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
|||
source "${OPENIM_ROOT}/scripts/lib/init.sh"
|
|||
|
|||
# This sets up a clean GOPATH and makes sure we are currently in it.
|
|||
openim::golang::setup_env
|
|||
|
|||
# Run the user-provided command.
|
|||
"${@}"
|