Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Add MacOS dependencies for lxml for dbt-redshift #379

Merged
merged 5 commits into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/formula-template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ class {{ classname }} < Formula
{%- endif %}
depends_on "[email protected]"

{#
Addresses failed runs like this one:
https://github.com/dbt-labs/homebrew-dbt/actions/runs/8088432639/job/22102463432#step:17:88
We need to indicate that `lxml` depends on the os dependencies `libxml2` and `libxslt`.
This needs to occur before we try to import the resource (e.g. at the top of the file).
#}
{%- if package in ('dbt-redshift') %}
uses_from_macos "libxml2"
uses_from_macos "libxslt"
{%- endif %}

{{ resources }}

def install
Expand Down