Skip to content

Macaron causes panic on starting gogs/gitea in an unwritable/unreadable directory #175

Description

@zeripath

Hi!

The init method for macaron causes a panic if the current working directory cannot be read.

Root, err = os.Getwd()

Because this runs on init even if macaron is not going to be started, if it is linked to a binary it will prevent the binary from starting if it is started in a non-readable working directory.

A workaround is possible but it's not ideal. Is there any way to avoid panicking here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions