Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
shishaktdlpx committed Jun 8, 2023
2 parents 07ef96e + 6c9422d commit 02e3870
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/verify-query-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test "$(TARGET_KERNEL_FLAVORS=generic ./query-packages.sh list linux-kernel)" ==
# Check that when a package has multiple dependencies they are printed in the
# expected format.
test "$(TARGET_KERNEL_FLAVORS="generic aws" ./query-packages.sh single -o dependencies zfs)" == \
"linux-kernel-generic,linux-kernel-aws,delphix-rust,dwarves"
"linux-kernel-generic,linux-kernel-aws,delphix-rust,delphix-go,dwarves"

# Check that the output from the appliance list contains zfs and
# delphix-platform packages. Note, we explicitly do not use grep -q here as it
Expand Down
1 change: 1 addition & 0 deletions package-lists/build/main.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ challenge-response
cloud-init
crash-python
crypt-blowfish
delphix-go
delphix-platform
delphix-rust
delphix-sso-app
Expand Down
24 changes: 24 additions & 0 deletions packages/delphix-go/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# Copyright 2021 Delphix
#
# 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.
#
# shellcheck disable=SC2034

DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/delphix-go.git"

function build() {
logmust mkdir -p "$WORKDIR/repo"
logmust dpkg_buildpackage_default
}
3 changes: 2 additions & 1 deletion packages/zfs/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# shellcheck disable=SC2034

DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/zfs.git"
PACKAGE_DEPENDENCIES="@linux-kernel delphix-rust dwarves"
PACKAGE_DEPENDENCIES="@linux-kernel delphix-rust delphix-go dwarves"

UPSTREAM_GIT_URL="https://github.com/openzfs/zfs.git"
UPSTREAM_GIT_BRANCH="master"
Expand Down Expand Up @@ -56,6 +56,7 @@ function prepare() {
zlib1g-dev
logmust install_kernel_headers
logmust install_pkgs "$DEPDIR"/delphix-rust/*.deb
logmust install_pkgs "$DEPDIR"/delphix-go/*.deb
logmust install_pkgs "$DEPDIR"/dwarves/*.deb
}

Expand Down
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function configure_apt_sources() {
if [[ -z "$primary_url" ]] || [[ -z "$secondary_url" ]]; then
local latest_url="http://linux-package-mirror.delphix.com/"
if is_release_branch; then
package_mirror_url="${latest_url}${DEFAULT_GIT_BRANCH}"
package_mirror_url="${latest_url}releases/${DELPHIX_RELEASE_VERSION}"
else
latest_url+="${DEFAULT_GIT_BRANCH}/latest/"
package_mirror_url=$(curl -LfSs -o /dev/null -w '%{url_effective}' \
Expand Down

0 comments on commit 02e3870

Please sign in to comment.