Skip to content

Cache not used for 'dir' sources #356

@sophie-h

Description

@sophie-h

Linux distribution and version

Debian 10

Flatpak-builder version

1.0.10

Flatpak version

1.2.5

Description of the problem

Source of type dir always leads to "Cache miss"

Steps to reproduce

app-id: org.example.App
runtime: org.gnome.Platform
sdk: org.gnome.Sdk

modules:
  - name: file
    buildsystem: simple
    build-commands: [ echo file ]
    sources:
      - type: file
        path: /etc/os-release
  - name: dir
    buildsystem: simple
    build-commands: [ echo dir ]
    sources:
      - type: dir
        path: ./
  - name: git
    buildsystem: simple
    build-commands: [ echo git ]
    sources:
      - type: git
        path: ./

result of second run

Cache hit for file, skipping build
Cache miss, checking out last cache hit
========================================================================
Building module dir in /tmp/test/.flatpak-builder/build/dir-1
========================================================================
Running: echo dir
dir
Committing stage build-dir to cache
========================================================================
Building module git in /tmp/test/.flatpak-builder/build/git-1
========================================================================
Already on 'master'
Running: echo git
git
Committing stage build-git to cache

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions