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

Commit

Permalink
Add MacOS dependencies for lxml for dbt-redshift (#379)
Browse files Browse the repository at this point in the history
* add mac os dependencies for lxml for dbt-redshift

* add mac os dependencies for lxml for dbt-redshift

* add comment to retain context
  • Loading branch information
mikealfare authored Mar 1, 2024
1 parent 06c7278 commit 5545c6c
Showing 1 changed file with 11 additions and 0 deletions.
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

0 comments on commit 5545c6c

Please sign in to comment.