Skip to content

Commit

Permalink
Merge pull request #73 from privacysandbox/release-0.51.0
Browse files Browse the repository at this point in the history
Release 0.51.0
  • Loading branch information
pmeric authored Nov 30, 2023
2 parents b947102 + 0653692 commit d40f213
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 14 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## 0.51.0 (2023-11-30)


### Bug Fixes

* Clean go build cache at the end of image build script


### Dependencies

* **deps:** Upgrade bazelisk to 1.19.0

## 0.50.0 (2023-11-06)


Expand Down
6 changes: 6 additions & 0 deletions images/build-amazonlinux2/install_apps
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ function install_clang() {
clang --version
}

function cleanup() {
cd /
go clean -cache
}

if [[ ${VERBOSE} -eq 1 ]]; then
printf "=== SHELL ENVIRONMENT ===\n"
env
Expand All @@ -99,3 +104,4 @@ install_golang "${BUILD_ARCH}"
install_gcc
install_packer
install_python
cleanup
6 changes: 6 additions & 0 deletions images/build-amazonlinux2023/install_apps
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ function install_clang() {
clang --version
}

function cleanup() {
cd /
go clean -cache
}

if [[ ${VERBOSE} -eq 1 ]]; then
printf "=== SHELL ENVIRONMENT ===\n"
env
Expand All @@ -98,3 +103,4 @@ install_clang
install_golang "${BUILD_ARCH}"
install_gcc
install_packer
cleanup
6 changes: 4 additions & 2 deletions images/build-debian/install_apps
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ function install_docker() {
apt-get --quiet install -y --no-install-recommends docker-ce docker-ce-cli containerd.io
}

function clean_debian() {
function cleanup() {
apt-get --quiet autoremove -y
apt-get autoclean
apt-get clean
rm -rf /var/lib/apt/lists
cd /
go clean -cache
}

if [[ ${VERBOSE} -eq 1 ]]; then
Expand All @@ -140,4 +142,4 @@ install_clang
install_golang "${BUILD_ARCH}"
install_docker "${BUILD_ARCH}"
install_python # should run after other install_*
clean_debian
cleanup
2 changes: 1 addition & 1 deletion images/install_golang_apps
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while [[ $# -gt 0 ]]; do
done

function install_bazelisk() {
go install github.com/bazelbuild/bazelisk@v1.13.2
go install github.com/bazelbuild/bazelisk@v1.19.0
BAZELISK="$(go env GOPATH)"/bin/bazelisk
if [[ -n ${BAZEL_PATH} ]] && [[ -d ${BAZEL_PATH} ]]; then
ln -s "${BAZELISK}" "${BAZEL_PATH}"/bazel
Expand Down
11 changes: 5 additions & 6 deletions images/presubmit/install_apps
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ while [[ $# -gt 0 ]]; do
set -o xtrace
shift
;;
-h | --help)
usage 0
break
;;
-h | --help) usage 0 ;;
*) usage 0 ;;
esac
done
Expand Down Expand Up @@ -102,11 +99,13 @@ function install_precommit() {
rm -rf "${GIT_REPO}"
}

function clean_debian() {
function cleanup() {
apt-get --quiet autoremove -y
apt-get autoclean
apt-get clean
rm -rf /var/lib/apt/lists
cd /
go clean -cache
}

if [[ ${VERBOSE} -eq 1 ]]; then
Expand All @@ -126,4 +125,4 @@ install_packages
install_golang "${ARCH}"
install_docker
install_precommit
clean_debian
cleanup
2 changes: 1 addition & 1 deletion tests/data/hashes/build-amazonlinux2
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1feb61b0cf40e2797fc6a3425c3e50ce928ca194f3338d9a7155e51a4917312a
b35ee4e2b6210bc66e97083805642945433b0ef648a9d297a2a4ccdfb518413f
2 changes: 1 addition & 1 deletion tests/data/hashes/build-amazonlinux2023
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a1c165d019f546e1fcad06506da3b274094b61a9add5576bf3fed6e5a45fb8d4
7501f9f920a794ba6fa7c6cabb17d076ed3db0faf3fe5393e2904ce71978dec5
2 changes: 1 addition & 1 deletion tests/data/hashes/build-debian
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c5c1f804b797e6d37fe7d1766123706b9a9db5e1ac2f99b131624adf0eac7718
d1e3d62592bd4f05de6ca85c030578fc10c3430fdbad48a368ddb1e4618374c7
2 changes: 1 addition & 1 deletion tests/data/hashes/presubmit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
40b437991cd3ec239fc0d0eef162005dc62784def9c40548f3ea235d99c2e5a0
79f2509c74607ab33bc5fe3f425f61ddf89e2f75efc299b1a5a7a3039367c90e
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.50.0
0.51.0

0 comments on commit d40f213

Please sign in to comment.