databricks / cli

Databricks CLI
Other
148 stars 56 forks source link

DABs incorrectly recognise PyPi package names with complex version constraints as local libraries #1728

Closed andrewnester closed 2 months ago

andrewnester commented 2 months ago

Using this configuration on CLI version 0.227.0 fails with an error

environments:
        - environment_key: dbt
          spec:
            client: 1
            dependencies:
              - dbt-databricks>=1.0.0,<2.0.0
$ databricks bundle deploy
Building wheel_task_probe_package_wheel...
Error: file doesn't exist dbt-databricks>=1.0.0,<2.0.0
 at resources.jobs.success_dbt.environments[0].spec.dependencies[0]
 in resources/dbt_tasks/success_dbt.yml:23:17