Create dedicated way of upgrading drivers in the lockfile

オープン
#196 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
cli

調査の方向性

Start by reading the CLI command and lockfile handling for dbc sync, along with tests covering driver version resolution and lockfile updates. The issue proposes either a dbc update command or a dbc sync --update flag, while preserving dbc.toml version constraints; done means users can upgrade locked driver versions without deleting the lockfile.

索引モデルが issue の本文から書いたものです。

説明

Currently, we don't have a good way for users to upgrade the driver versions in dbc.lock. For example, if a user specifies "sqlite" with no version constraint,

$ cat dbc.toml
[drivers]
[drivers.sqlite]

Running dbc sync gives them the latest version of the driver and locks them to the latest version available at the time they ran the command,

$ cat dbc.lock
# This file is automatically @generated by dbc. Not intended for manual editing
version = 1

[[drivers]]
name = 'sqlite'
version = '1.8.0'
platform = 'macos_arm64'
checksum = '3c495f66d393befbcd1b36fb5fbd9dc41b381e98c4b385680037e14eddb1a5f2'

Right now, if we were to release sqlite 1.9.0, a user would have to remove their dbc.lock to upgrade the lockfile to be locked to it. This is a bit too nuclear IMO and adding a way to upgrade a lockfile without wholesale replacing it would be good.

Some possible ideas for the command,

1 dbc update
2. dbc sync --update

The new subcommand or flag would still respect any version constraints in dbc.toml.

主要言語
Go
スター
154
フォーク
15
平均マージ
2日 3時間
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

columnar-tech/dbc のほかの issue

columnar-tech/dbc の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。