Skip to content

Commit

Permalink
test: Avoid file with ':' in the name
Browse files Browse the repository at this point in the history
Unfortunately, `go get` rejects repos that have files with ':':
golang/go#28001.

We have one such file in the tests.

This prevents some of the Go tooling from working on the latest release,
including pkg.go.dev.

So, as a workaround we use a compatible file name in the repository, and
rename it when running the test. This is very hacky, but it's okay for a
single test.
  • Loading branch information
albertito committed Apr 27, 2024
1 parent 7dbde5a commit 0414af0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/t-20-bad_configs/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ do
CONFDIR=$i/ generate_certs_for testserver
done

# Adjust the name of the dkim key file in c-11-bad_dkim_key.
# `go get` rejects repos that have files with ':', so as a workaround we store
# a compatible file name in the repo, and copy it before testing.
cp c-11-bad_dkim_key/domains/testserver/dkim__selector.pem \
c-11-bad_dkim_key/domains/testserver/dkim:selector.pem

for i in c-*; do
if chasquid --config_dir="$i" > ".chasquid-$i.out" 2>&1; then
echo "$i failed; output:"
Expand Down

0 comments on commit 0414af0

Please sign in to comment.