alexandear / import-gitlab-commits

Import commits from a private GitLab repository in an anonymized way.
MIT License
161 stars 14 forks source link

i'm having difficulty running this tool #4

Closed balotofi closed 1 year ago

balotofi commented 1 year ago

i installed go (armx64) opened terminal on my mac checked the version to ensure it was working i cd to my go folder and ran the report and run commands

alexandear commented 1 year ago

Thank you for letting me know about the difficulty you are experiencing running the tool. I'd be happy to assist you with this issue. Could you please provide me with some additional information?

With this information, I'll be better able to diagnose the issue and provide you with a solution.

balotofi commented 1 year ago
Screenshot 2023-03-17 at 16 25 45

so this is the error I'm getting... i tried copying the folders into the path it specified but i just got another error

alexandear commented 1 year ago

I see. Try to install import-gitlab-commits first:

go install github.com/alexandear/import-gitlab-commits@latest

and execute:

import-gitlab-commits

Or run the following command with go run:

go run github.com/alexandear/import-gitlab-commits@latest
AlfinIndrawan commented 1 year ago

i have the same problem like that. when i run without export it will give this

10:50:35 main.go:14: Error: app run: get current user: get current user: GET https://gitlab.com/users/sign_in: 403 failed to parse unknown error format

when i run with export like export GITLAB_BASE_URL=url export GITLAB_TOKEN="token" export COMMITTER_NAME="name" export COMMITTER_EMAIL="email" go run import-gitlab-commits

it will give error cannot find package "import-gitlab-commits" in: /usr/local/go/src/import-gitlab-commits

kubk commented 1 year ago

@alexandear Thank you for the useful package! Unfortunately, the command from the README didn't work for me, so I had to use go run github.com/alexandear/import-gitlab-commits@latest to get things running.

Otherwise, I get this error:

./import.sh: line 8: import-gitlab-commits: command not found

Should the README be updated?

alexandear commented 1 year ago

@kubk thanks, updated README.

Also, you could extend PATH with $GOPATH/bin and import-gitlab-commits will work:

export PATH=$PATH:$(go env GOPATH)/bin

https://go.dev/doc/gopath_code#GOPATH