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

Added {{.TempDir}} to TemplateData #62

Merged

Conversation

jkellerer
Copy link
Collaborator

@jkellerer jkellerer commented Aug 13, 2021

Allows to use {{.TempDir}} in the profile, e.g. for lock or status file paths.

Using os.TempDir() is more reliable than {{.Env.TMPDIR}} which might not be defined.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    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
0.2% 0.2% Duplication

@codecov
Copy link

codecov bot commented Aug 13, 2021

Codecov Report

Merging #62 (773d027) into master (d59a1ff) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #62   +/-   ##
=======================================
  Coverage   58.70%   58.71%           
=======================================
  Files          56       56           
  Lines        4255     4256    +1     
=======================================
+ Hits         2498     2499    +1     
  Misses       1572     1572           
  Partials      185      185           
Impacted Files Coverage Δ
config/template.go 83.33% <100.00%> (+0.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d59a1ff...773d027. Read the comment docs.

@jkellerer jkellerer mentioned this pull request Aug 13, 2021
5 tasks
@jkellerer jkellerer changed the title Added "{{.TmpDir}}" to TemplateData Added "{{.TempDir}}" to TemplateData Aug 14, 2021
@jkellerer jkellerer changed the title Added "{{.TempDir}}" to TemplateData Added {{.TempDir}} to TemplateData Aug 14, 2021
@creativeprojects creativeprojects merged commit 37a69d7 into creativeprojects:master Aug 14, 2021
@jkellerer jkellerer deleted the ft-tmpdir-in-template branch August 15, 2021 12:21
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.

2 participants