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

How to download a git repository using go-getter? #492

Open
officialasishkumar opened this issue May 31, 2024 · 0 comments
Open

How to download a git repository using go-getter? #492

officialasishkumar opened this issue May 31, 2024 · 0 comments
Labels

Comments

@officialasishkumar
Copy link

I have currently written a code in golang to download git repository using go-getter but not sure why it's not working. Can someone please help me out?

package main

import (
	"github.com/hashicorp/go-getter"
)

func main() {
	client := &getter.Client{
		Src: "git::https://github.com/kcl-lang/flask-demo-kcl-manifests?refs=ade147b",
		Dst: "/tmp",
		Pwd: "/tmp",
	}
	if err := client.Get(); err != nil {
		panic(err)
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants