Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Providing hash_extra for local_existing_package #124

Closed
@andormarkus

Description

@andormarkus

Hi All,

In the current implementation hash_extra is only working when the package in created by this module.
We are compiling our packages in the CI/CD pipeline and the hash of the .zip file keeps changing however the source code does not change.

It would be great if hash_extraor similarly named variable would have effect on the local_existing_package as well.

Implementation could look like this:
source_code_hash = (var.hash_extra != null ? var.hash_extra : local.filename == null ? false : fileexists(local.filename)) && !local.was_missing ? filebase64sha256(local.filename) : null

Thanks,
Andor

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