Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dynamic inclusion of assets by setting SETTINGS_ASSET_PATH #1032

Closed
wants to merge 1 commit into from

Conversation

fschade
Copy link
Contributor

@fschade fschade commented Dec 7, 2020

belongs to: #1031

@update-docs
Copy link

update-docs bot commented Dec 7, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@fschade fschade requested a review from kulmann December 7, 2020 17:25
@sonarcloud
Copy link

sonarcloud bot commented Dec 7, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@@ -27,7 +26,7 @@ type assets struct {
func (a assets) Open(original string) (http.File, error) {
if a.config.Asset.Path != "" {
if stat, err := os.Stat(a.config.Asset.Path); err == nil && stat.IsDir() {
custom := filepath.Join(
custom := path.Join(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest I don't get what difference this makes on a linux or mac computer. We are trying to use filepath everywhere because it is able to handle backslashes. Could you elaborate why/how this fixes asset loading? And for what it's worth, it might deserve a changelog then. ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my fault, i had some strange errors yesterday. it was on my machine only. closed

@fschade fschade closed this Dec 8, 2020
@fschade fschade deleted the fix-settongs-asset-path branch December 8, 2020 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants