Skip to content

Commit

Permalink
github: Fix up malformed /etc/hosts.
Browse files Browse the repository at this point in the history
For some reason /etc/hosts in GHA now contains a plain text line
like this:

  Note: Don't Delete this file. Also, don't remove this line. ...

This breaks libunbound and makes a series of unit tests to emit
following warning:
  |00001|dns_resolve|WARN|Failed to read etc/hosts: syntax error

Working around this issue by removing a bad line from /etc/hosts
until this fixed properly by GitHub team.

Bug for virtual-environments:
  actions/runner-images#3353

Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
  • Loading branch information
igsilya committed May 11, 2021
1 parent 127bf16 commit 62df4c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ jobs:
if: matrix.m32 != ''
run: sudo apt install -y ${{ env.m32_dependecies }}

- name: fix up /etc/hosts
# https://github.com/actions/virtual-environments/issues/3353
run: |
cat /etc/hosts
sudo sed -i "/don't remove this line/d" /etc/hosts || true
- name: update PATH
run: |
echo "$HOME/bin" >> $GITHUB_PATH
Expand Down

0 comments on commit 62df4c0

Please sign in to comment.