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

get artifacts addation error #20

Open
Firstnsnd opened this issue Sep 13, 2023 · 2 comments
Open

get artifacts addation error #20

Firstnsnd opened this issue Sep 13, 2023 · 2 comments

Comments

@Firstnsnd
Copy link

Firstnsnd commented Sep 13, 2023

My code is as follows:

param := artifact.NewGetAdditionParams().
		WithContext(ctx).
		WithProjectName(imageSpaceName).
		WithRepositoryName(imageName).
		WithReference(reference).
		WithAddition("build_history")

	replyAddition, err := client.V2().Artifact.GetAddition(ctx, param)

this code will return an error: json: cannot unmarshal array into Go value of type string

github.com/goharbor/go-client v0.26.2

@Firstnsnd Firstnsnd changed the title sdk will support build_history sdk will support get build_history? Sep 13, 2023
@Firstnsnd Firstnsnd changed the title sdk will support get build_history? bug: get artifacts addation error Sep 14, 2023
@Firstnsnd Firstnsnd changed the title bug: get artifacts addation error get artifacts addation error Sep 14, 2023
@Vad1mo
Copy link
Member

Vad1mo commented Jan 25, 2024

did you resovel the problem

@Firstnsnd
Copy link
Author

Firstnsnd commented Feb 28, 2024

did you resovel the proble

I define a struct include this go-client,and implement a method to get artifacts addation

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

No branches or pull requests

2 participants