Errors with swagger on MacOS when running generate-swagger #3119

Closed
opened 2025-11-02 05:01:17 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @richmahn on GitHub (Mar 29, 2019).

On MacOS with current master branch of Gitea, if you run "make generate-swagger" you get two problems:

  1. basePath doesn't include {{AppSubUrl}} due to MacOS sed not supporting \s without the -E arg
  2. An EOL marker which doesn't exist if you run this on Linux

This causes the build to fail since drone will have AppSubUrl and no EOL.

Originally created by @richmahn on GitHub (Mar 29, 2019). On MacOS with current master branch of Gitea, if you run "make generate-swagger" you get two problems: 1. basePath doesn't include {{AppSubUrl}} due to MacOS sed not supporting \s without the -E arg 2. An EOL marker which doesn't exist if you run this on Linux This causes the build to fail since drone will have AppSubUrl and no EOL.
GiteaMirror added the topic/build label 2025-11-02 05:01:17 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3119