Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archive_dependencies.sh: Handle no dependencies #463

Merged
merged 2 commits into from
Jan 11, 2022

Conversation

markmandel
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug

/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

If there are no dependencies utilised that we need to archive source for, this breaks the build process since no dependencies-src.zip file is created, and the Dockerfile has nothing to copy.

This changes the script such that it starts with an empty zip file, and then appends dependencies if and when they exist.

Which issue(s) this PR fixes:

Unblocks #457

Special notes for your reviewer:

If @XAMPPRocky is still on vacation, this will let us merge #457, and I can handle the removal of slog-json from this script separately. Since the dependency is no longer used, the library isn't on the cloud build machine, so the archive zip is correct even with the item in the dependencies list.

If there are no dependencies utilised that we need to archive source for,
this breaks the build process since no dependencies-src.zip file is
created, and the Dockerfile has nothing to copy.

This changes the script such that it starts with an empty zip file, and
then appends dependencies if and when they exist.

Unblocks googleforgames#457
@markmandel markmandel added kind/bug Something isn't working area/build-tools Development tooling. labels Jan 10, 2022
@quilkin-bot
Copy link
Collaborator

Build Succeeded 🥳

Build Id: b422f8e8-f8c8-4ab2-8115-9a7291cf3784

To build this version:

git fetch [email protected]:googleforgames/quilkin.git pull/463/head:pr_463 && git checkout pr_463
cargo build

@markmandel markmandel merged commit ad54604 into googleforgames:main Jan 11, 2022
@markmandel markmandel deleted the bug/enpty-deps branch January 11, 2022 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-tools Development tooling. kind/bug Something isn't working size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants