diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11875b6..bcd178e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,11 +51,6 @@ jobs: - name: Install Mage run: go install github.com/magefile/mage@v1.15 - - name: Installing quicktype - run: | - yarn global add quicktype@23 - echo "$(yarn global bin)" >> $GITHUB_PATH - - name: Build run: | mage -v build:${{ matrix.target }} ${{ matrix.schema }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f1995ad..a933a6f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,11 +66,6 @@ jobs: - name: Install Mage run: go install github.com/magefile/mage@v1.15 - - name: Installing quicktype - run: | - yarn global add quicktype@23 - echo "$(yarn global bin)" >> $GITHUB_PATH - - name: Publish run: | mage -v publish:ts ${{ matrix.schema }} $GITHUB_REF diff --git a/.github/workflows/update-schema.yml b/.github/workflows/update-schema.yml index 5a24b6a..54766a7 100644 --- a/.github/workflows/update-schema.yml +++ b/.github/workflows/update-schema.yml @@ -122,11 +122,6 @@ jobs: - name: Install Mage run: go install github.com/magefile/mage@v1.15 - - name: Installing quicktype - run: | - yarn global add quicktype@23 - echo "$(yarn global bin)" >> $GITHUB_PATH - - name: Build run: | mage -v build:${{ matrix.target }} ${{ matrix.schema }} diff --git a/magefiles/utils.go b/magefiles/utils.go index ee6dca5..e32d985 100644 --- a/magefiles/utils.go +++ b/magefiles/utils.go @@ -125,13 +125,6 @@ func ensureTsCodegen() { } } -// EnsureQuicktype ensures that quicktype is installed, if not it panics. -func ensureQuicktype() { - if err := sh.Run("quicktype", "--help"); err != nil { - panic("quicktype is not installed") - } -} - // EnsureYarn ensures that yarn is installed, if not it panics. func ensureYarn() { if err := sh.Run("yarn", "--help"); err != nil { @@ -146,7 +139,7 @@ func ensureGoCodegen() { } fmt.Printf("🔨 Installing go-codegen...\n") - if err := sh.Run("go", "install", "github.com/srdtrk/go-codegen@0.2.5"); err != nil { + if err := sh.Run("go", "install", "github.com/srdtrk/go-codegen@v0.2.5"); err != nil { panic(fmt.Sprintf("failed to install go-codegen: %v", err)) } }