Skip to content

Commit 609e83e

Browse files
committed
bugfix: missing files from installed deb packages
In ubuntu:22.04 docker man dpkg contains following: "-L|--listfiles <package>... List files 'owned' by package(s)." `dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which is not present in the system after successful `apt-get -y install cmake`. This file is not installed because it matches exclude-path in dpkg config, and `apt-get install` respects this config option, while `dpkg -L` doesn't. This leads to setup-tarantool failing during packaging cache. This patch filters `dpkg -L` output according to dpkg configs. Closes #44
1 parent 331fadb commit 609e83e

File tree

3 files changed

+37218
-36961
lines changed

3 files changed

+37218
-36961
lines changed

.github/workflows/test-docker.yml

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Test in docker
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
runs-on: ['ubuntu-22.04']
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
tarantool:
14+
- '1.10'
15+
- '2.10'
16+
- '2.11'
17+
18+
image:
19+
- ubuntu:focal
20+
- ubuntu:jammy
21+
- debian:buster
22+
- debian:bullseye
23+
24+
# Only 2.11 is available on debian bookworm
25+
include:
26+
- tarantool: '2.11'
27+
image: debian:bookworm
28+
29+
container:
30+
image: ${{ matrix.image }}
31+
32+
env:
33+
TARANTOOL_CACHE_KEY_SUFFIX: -DA-${{ matrix.image }}-${{ github.run_id }}
34+
DEBIAN_FRONTEND: noninteractive
35+
TZ: Etc/UTC
36+
37+
steps:
38+
- name: Setup system
39+
run: |
40+
apt-get -y update
41+
apt-get -y upgrade
42+
apt-get -y install --no-install-recommends --no-install-suggests \
43+
tzdata sudo lsb-release gnupg ca-certificates rsync
44+
45+
- name: Setup nodejs
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: '18.18.0'
49+
50+
- uses: actions/checkout@v4
51+
52+
- id: latest-version
53+
uses: ./.github/actions/latest-version
54+
with:
55+
tarantool-series: '${{ matrix.tarantool }}'
56+
57+
- name: Setup from scratch
58+
uses: ./
59+
with:
60+
tarantool-version: ${{ matrix.tarantool }}
61+
62+
- name: Check precise version
63+
uses: ./.github/actions/verify-version
64+
with:
65+
tarantool-version: '${{ steps.latest-version.outputs.git-describe }}'
66+
from-cache: false
67+
68+
- name: Uninstall tarantool
69+
run: sudo apt-get -y remove tarantool tarantool-dev tarantool-common
70+
71+
- name: Setup from cache
72+
uses: ./
73+
with:
74+
tarantool-version: ${{ matrix.tarantool }}
75+
76+
- name: Verify install from cache
77+
uses: ./.github/actions/verify-version
78+
with:
79+
tarantool-version: '${{ steps.latest-version.outputs.git-describe }}'
80+
from-cache: true

0 commit comments

Comments
 (0)