Gitea project directory (which contains main.go and go.mod), The Output Directory in Run/Debug Configuration MUST be set to the Note: this may generate a number of untracked Git objects, which will need toĪ launch.json and tasks.json are provided within contrib/ide/vscode forĬlicking the Run Application arrow on the function func main() in /main.goĬan quickly start a debuggable Gitea instance. You will require a copy of Hugo to run this task. Once you have created or changed an API endpoint, please regenerate the Swagger Or fundamental changes to the API will be rejected. In general, this means additions are acceptable, but deletions You should be careful not to break the API for downstream users which depend Or compare with a previous PR adding a new API endpoint, e.g. If you want more information about the Swagger structure, you can look at the The structure of these comments is described in the specification.
![goland build tags goland build tags](https://plugins.jetbrains.com/files/6884/screenshot_14080.png)
![goland build tags goland build tags](https://artspb.me/images/working-with-tinygo-in-goland/terminal.png)
When creating new API routes or modifying existing API routes, you MUSTĭocumentation for these using go-swagger comments.
#GOLAND BUILD TAGS UPDATE#
Omitting the gitea tag will update only the user-designated logo files. The same process can also be used to generate custom logo PNGs from a SVG source file by updating assets/logo.svg and running make generate-images. To run it, Node.js and npm must be available. The PNG and SVG versions of the Gitea logo are built from a single SVG source file assets/logo.svg using the TAGS="gitea" make generate-images target. Custom icons can be added in the web_src/svg directory. SVG icons are built using the make svg target which compiles the icon sources defined in build/generate-svg.js into the output directory public/img/svg. ISSUE_INDEXER_TYPE = elasticsearch ISSUE_INDEXER_CONN_STR = :9200 REPO_INDEXER_ENABLED = true REPO_INDEXER_TYPE = elasticsearch REPO_INDEXER_CONN_STR = :9200 Building and adding SVGs
#GOLAND BUILD TAGS CODE#
The recommended method of obtaining the source code is by using git clone. Downloading and cloning the Gitea source code The above prompts (Git bash, or MinGW) are recommended, however if you only have command prompt (or potentially PowerShell) you can set environment variables using the set command, e.g. Note: If you are attempting to build using make with Windows Command Prompt, you may run into issues.
![goland build tags goland build tags](https://img-blog.csdnimg.cn/20190806150055455.png)
One of these three distributions of Make will run on Windows: Gitea makes heavy use of Make to automate tasks and improve development. As of last update, the Go version should be 1.18
#GOLAND BUILD TAGS INSTALL#
Recommended to install the version of Go that our continuous integration is If you don’t add the go bin directory to theĮxecutable path you will have to manage this yourself.
![goland build tags goland build tags](https://user-images.githubusercontent.com/10903567/64661160-28f6c080-d476-11e9-8f87-d387af8e4e5f.png)
To be able to use these you must have the "$GOPATH"/bin directory Make watch-backend, Gitea will automatically download and build these as Note: When executing make tasks that require external tools, like The minimum supported Node.jsĪnd the latest LTS version is recommended. Required to build the JavaScript and CSS files.