# Unable to use "code.gitea.io/sdk/gitea" when the version is an alien version

**URL:** <https://forum.gitea.com/t/unable-to-use-code-gitea-io-sdk-gitea-when-the-version-is-an-alien-version/6837>\
**Category:** API/SDK/Tea/HelmChart/Terraform\
**Created:** [March 7, 2023, 9:41pm UTC](https://forum.gitea.com/t/unable-to-use-code-gitea-io-sdk-gitea-when-the-version-is-an-alien-version/6837 "2023-03-07T21:41:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Super-Sky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/super-sky/32/3505_2.png) [@Super-Sky](https://forum.gitea.com/u/Super-Sky)\
**Post date:** [March 7, 2023, 9:41pm UTC](https://forum.gitea.com/t/unable-to-use-code-gitea-io-sdk-gitea-when-the-version-is-an-alien-version/6837/1 "2023-03-07T21:41:10Z")

</div>

“[SDK - Code](http://code.gitea.io/sdk/gitea)” package, whether it can support custom version, such as actively input a version information

---

<div class="post-metadata">

**Author:** ![jolheiser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/jolheiser/32/4807_2.png) [@jolheiser](https://forum.gitea.com/u/jolheiser)\
**Post date:** [March 7, 2023, 9:47pm UTC](https://forum.gitea.com/t/unable-to-use-code-gitea-io-sdk-gitea-when-the-version-is-an-alien-version/6837/2 "2023-03-07T21:47:42Z")

</div>

Related issue

> **[Bug: tea command fails when remote version is a SHA1](https://gitea.com/gitea/tea/issues/531)**
>
> \### describe your environment
> \- tea version used (\`tea -v\`): 0.9.0-1
> - \[x\] I also reproduced the issue: \`Version: 0.9.0+11-gfaa9858 golang: 1.20 go-sdk: v0.15.1-0.20220927025037-8f846bdb9bbe\`
> \- Gitea version used:
> - \[\] the issue only...

and PR

> **[Set client version to lowest for compat if server version can't be recognized](https://gitea.com/gitea/go-sdk/pulls/612)**
>
> This is a possible resolution for gitea/tea#531

I need to do some cleanup in the PR, but hopefully that is able to clear it up.

That being said, you can also use [SetGiteaVersion](https://pkg.go.dev/code.gitea.io/sdk/gitea#SetGiteaVersion) to set the version manually in your code.
