Skip to content

Distribute dbc on a broader set of channels #17

Open
1 of 1 issue completed
Open

Description

@amoeba

As a follow-on to columnar-tech/dbc-internal#8, we will want to distribute dbc on a broader set of distribution channels than just PyPi. Things like Homebrew, manually-installable deb packages, etc.

For ~0.1, this can be just:

  • Homebrew (as a Cask)

For beyond, we should consider having more channels, in particular supporting at least one system package manager on each major OS:

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. amoeba commented on Jul 15, 2025

    @amoeba
    MemberAuthor
  2. ianmcook commented on Jul 16, 2025

    @ianmcook
    Member

    Let me know if we need a GoReleaser Pro license. Looks like it would be $22/month https://goreleaser.com/pro/

  3. transferred this issue fromon Sep 9, 2025
  4. zeroshade commented on Oct 21, 2025

    @zeroshade
    Member

    Homebrew installation now supported!

  5. reopened this on Oct 22, 2025
  6. amoeba commented on Oct 22, 2025

    @amoeba
    MemberAuthor

    Re-opening since this issue since we want to eventually add even more distribution channels, just not right this second. I'll update the original issue with a bit of context.

  7. eitsupi commented on Oct 23, 2025

    @eitsupi
    Member

    I created a PR to winget-pkgs using komac (microsoft/winget-pkgs#306279).
    Please check the contents if you are interested.

    Note that, winget doesn't currently have a concept of pre-releases, and there's nothing to prevent you from updating from 1.0.0 to 1.1.0-alpha, so I'm not sure if it's a good idea to register a beta version in general.
    However, since there is no stable version for dbc at the moment, I created a PR just to try it out.

    If you feel my PR is inappropriate, please let me know and I will close it (I know that go-releaser has the feature for winget release, but the initial package registration is important as it involves deciding the package name etc. and is likely to fail, so I decided to open it anyway).

  8. amoeba commented on Oct 24, 2025

    @amoeba
    MemberAuthor

    Thanks @eitsupi, that's super helpful.

  9. eitsupi commented on Oct 25, 2025

    @eitsupi
    Member

    @amoeba @ianmcook Could you please take a look at the package name etc?
    https://github.com/microsoft/winget-pkgs/pull/306279/files
    (Of course, we can change the package name and other things later, so there's no rush.)

    At the moment it is not ready to be merged due to an automatic validation failure, but if it goes well, would it be okay to proceed as is?

  10. ianmcook commented on Oct 25, 2025

    @ianmcook
    Member

    @eitsupi Thanks! I left a few small suggestions.

    @zeroshade Please take a look. We will need to make sure this is incorporated into our dbc release process. Can opening PRs in microsoft/winget-pkgs be fully automated? If not we will need to have a checklist.

  11. eitsupi commented on Oct 25, 2025

    @eitsupi
    Member

    go-releaser has support for winget, and for example, as far as I know, go-task used this feature to automate PR creation to winget-pkgs for a while (looking at it now, that doesn't success recently).
    https://github.com/go-task/task/blob/88101613c836782220a9d326e3b35d27739adad9/.goreleaser.yml#L100-L138
    microsoft/winget-pkgs#263987 (https://github.com/microsoft/winget-pkgs/blob/20a8bd8af8165fb675242a1bc178214e3bc8e536/manifests/t/Task/Task/3.44.0/Task.Task.yaml#L1)

    Creating a PR for winget-pkgs must be done from a GitHub account, which can be a hassle as it requires linking to someone's personal account or a bot.

    Personally, I think a checklist might be better for now than automating it.
    Once we install komac and set up a GitHub token, creating a PR is pretty easy (I could do that for a while).

    I left a few small suggestions.

    Thanks, I've committed, so I'll see if it works out🤞

  12. ianmcook commented on Oct 25, 2025

    @ianmcook
    Member

    I think a checklist might be better for now

    #160

  13. amoeba commented on Oct 27, 2025

    @amoeba
    MemberAuthor

    Thanks for the winget PR @eitsupi. My main concern was that users can install it with winget install dbc without having to qualify as winget install Columnar.dbc and it looks like you set it up perfectly (including the moniker in the locale file).

  14. eitsupi commented on Oct 29, 2025

    @eitsupi
    Member

    I was thinking it would be better to send the release after #168 is merged, but microsoft/winget-pkgs#306279 also passed the automated checks, so it looks like it might be merged by the moderators soon.
    (The winget-pkgs verification process is quite mysterious, as I have no access to any useful logs and the checks sometimes suddenly succeed after several retries...)

    If it is merged, I'll try sending 0.1.0 next.
    From the second release onwards, it will be easy as we just need to specify the installer URL (with komac).

  15. amoeba commented on Oct 29, 2025

    @amoeba
    MemberAuthor

    Thanks for the update @eitsupi, the winget CI process is very mysterious indeed. The logs don't show anything as far as I can tell? I'll be curious to see how sending 0.1.0 goes.

    Before releasing a release with #168, I should see if I can find some good guidance on whether providing only a user-level install is best. We may want to revert #168.

  16. eitsupi commented on Oct 30, 2025

    @eitsupi
    Member

    Also, since winget supports standalone binary packages, it's possible to register the exe file instead of the MSI installer.
    Since users may not have administrator privileges, it might be necessary to register the .exe file if the MSI package does not allow user-level installation.

    It's truly a mystery why the automated checks keep repeating endlessly.
    I recently saw that the DuckDB CLI 1.4.1 went through automated checks for several days before suddenly passing and being merged (microsoft/winget-pkgs#304080).

  17. amoeba commented on Oct 30, 2025

    @amoeba
    MemberAuthor

    Good to know we can just package an EXE. Thanks for working on this @eitsupi!

  18. eitsupi commented on Nov 1, 2025

    @eitsupi
    Member

    winget install dbc works for now!

    ❯ winget search dbc
    名前                                      ID                                              バージョン   一致      ソース
    -----------------------------------------------------------------------------------------------------------------------
    dbc                                       Columnar.dbc                                    0.0.1-beta3            winget
    Simba Athena ODBC Driver                  Amazon.AthenaODBCDriver.1                       1.2.3.1000             winget
    Amazon Athena ODBC Driver                 Amazon.AthenaODBCDriver.2                       2.0.5.1                winget
    OpenSearch SQL ODBC Driver                Amazon.OpenSearch.ODBC                          1.1.0.1                winget
    Amazon Redshift ODBC Driver               Amazon.Redshift.ODBC.v1                         1.5.20.1024            winget
    Amazon Redshift ODBC Driver 64-bit        Amazon.Redshift.ODBC.v2                         2.1.9.0                winget
    Simba Spark ODBC Driver                   Databricks.SparkODBCDriver                      2.9.2                  winget
    Microsoft ODBC Driver 11 for SQL Server   Microsoft.SQLServer.11.ODBC                     12.0.5543.11           winget
    Microsoft ODBC Driver 11 for SQL Server   Microsoft.msodbcsql.11                          12.2.5543.11           winget
    Microsoft ODBC Driver 13 for SQL Server   Microsoft.msodbcsql.13                          13.1.4414.46           winget
    Microsoft ODBC Driver 17 for SQL Server   Microsoft.msodbcsql.17                          17.10.6.1              winget
    Microsoft ODBC Driver 18 for SQL Server   Microsoft.msodbcsql.18                          18.5.2.1               winget
    MongoDB CLI                               MongoDB.MongoDBCLI                              2.0.4                  winget
    psqlodbc                                  PostgreSQL.psqlODBC                             17.00.0006             winget
    psqlodbc (mimalloc version)               PostgreSQL.psqlODBC.mimalloc                    17.00.0006             winget
    Simba ODBC Driver for Google BigQuery     SimbaTechnologies.SimbaODBCDriverforGoogleBigQ… 3.0.7.1016             winget
    Snowflake ODBC Driver                     Snowflake.OdbcDriver                            3.12.0                 winget
    ODBC Driver for Teradata - Suite 20.00.27 Teradata.TTUOdbc                                20.00.27.00            winget
    Kangaroo Multiple                         Taozuhong.KangarooMultiple                      8.90.1.930   Tag: ODBC winget
    Kangaroo Redis                            Taozuhong.KangarooRedis                         8.90.1.930   Tag: ODBC winget
    
    ❯ winget install dbc
    見つかりました dbc [Columnar.dbc] バージョン 0.0.1-beta3
    このアプリケーションは所有者からライセンス供与されます。
    Microsoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。
    ダウンロード中 https://github.com/columnar-tech/dbc/releases/download/v0.0.1-beta3/dbc-0.0.1-beta3-x64.msi
      ██████████████████████████████  4.16 MB / 4.16 MB
    インストーラーハッシュが正常に検証されました
    パッケージのインストールを開始しています...
    インストールが完了しました

    Next, I will also submit a PR to register 0.1.0 (it will take a few more days).

    Edit: Done (microsoft/winget-pkgs#309007) (by komac update --version 0.1.0 --urls https://github.com/columnar-tech/dbc/releases/download/v0.1.0/dbc-0.1.0-x64.msi -- Columnar.dbc)

  19. eitsupi commented on Nov 2, 2025

    @eitsupi
  20. eitsupi commented on Nov 3, 2025

    @eitsupi
    Member

    @amoeba

    Before releasing a release with #168, I should see if I can find some good guidance on whether providing only a user-level install is best. We may want to revert #168.

    I found microsoft/winget-pkgs#223503 (comment).
    They say:

    WinGet has some issues handling the MSI installers that support both user-wide and machine-wide installations. See: microsoft/winget-cli#3011

    Conversely, I can imagine that an installer with only user scope would make sense.

  21. eitsupi commented on Nov 4, 2025

    @eitsupi
    Member

    winget upgrade dbc (0.0.1-beta3 -> 0.1.0) also works now.

    ❯ winget install dbc --version 0.0.1-beta3
    見つかりました dbc [Columnar.dbc] バージョン 0.0.1-beta3
    このアプリケーションは所有者からライセンス供与されます。
    Microsoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。
    ダウンロード中 https://github.com/columnar-tech/dbc/releases/download/v0.0.1-beta3/dbc-0.0.1-beta3-x64.msi
      ██████████████████████████████  4.16 MB / 4.16 MB
    インストーラーハッシュが正常に検証されました
    パッケージのインストールを開始しています...
    インストールが完了しました
    
    ❯ winget upgrade dbc
    見つかりました dbc [Columnar.dbc] バージョン 0.1.0
    このアプリケーションは所有者からライセンス供与されます。
    Microsoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。
    ダウンロード中 https://github.com/columnar-tech/dbc/releases/download/v0.1.0/dbc-0.1.0-x64.msi
      ██████████████████████████████  4.16 MB / 4.16 MB
    インストーラーハッシュが正常に検証されました
    パッケージのアンインストールを開始しています...
    正常にアンインストールされました
    パッケージのインストールを開始しています...
    インストールが完了しました
    
    ❯ dbc --version
    v0.1.0
  22. ianmcook commented on Nov 5, 2025

    @ianmcook
    Member

    #188 adds the WinGet installation option to the dbc docs.

  23. amoeba commented on Nov 10, 2025

    @amoeba
    MemberAuthor

    Thanks for doing the work for winget @eitsupi. I updated the list in the OP to show this is done. I also tested on my Windows machine which already had dbc beta installed and everything seems to work nicely. The existing uninstall ran and the new installer ran.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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