Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cdnmirror #124

Merged
merged 1 commit into from
Sep 23, 2022
Merged

add cdnmirror #124

merged 1 commit into from
Sep 23, 2022

Conversation

svenwltr
Copy link
Member

Usage:

  1. add "github.com/rebuy-de/rebuy-go-sdk/v4/cmd/cdnmirror" to tools.go
  2. make sure the ./buildutil wrapper contains go generate
  3. add go generate
  4. downloaded files will be in /assets/cdnmirror/

go generate

//go:generate go run github.com/rebuy-de/boombot/pkg/sdkext/cdnmirror font-awesome-sprites
//go:generate go run github.com/rebuy-de/boombot/pkg/sdkext/cdnmirror bulma

buildutil

#!/usr/bin/env sh
set -eu
go mod vendor
go generate ./...
exec go run github.com/rebuy-de/rebuy-go-sdk/v4/cmd/buildutil "$@"

tools.go

//go:build tools
// +build tools

package main

// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
import (
	_ "github.com/rebuy-de/rebuy-go-sdk/v4/cmd/buildutil"
	_ "github.com/rebuy-de/rebuy-go-sdk/v4/cmd/cdnmirror"
)

@svenwltr svenwltr self-assigned this Sep 23, 2022
@svenwltr svenwltr marked this pull request as ready for review September 23, 2022 06:08
@svenwltr svenwltr requested a review from a team as a code owner September 23, 2022 06:08
@svenwltr svenwltr force-pushed the add-cdnmirror branch 2 times, most recently from 5b60811 to 73171bd Compare September 23, 2022 06:18
Copy link
Member

@der-eismann der-eismann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bulma ❤️

@svenwltr svenwltr merged commit 727588f into master Sep 23, 2022
@svenwltr svenwltr deleted the add-cdnmirror branch September 23, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants