mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Snap: Add {system,user}-gitconfig plugs to read gitconfig (#9619)
* Add system-gitconfig plug to read /etc/gitconfig * Add user-gitconfig plug to read user-specific gitconfig file(s) * Add app environment setting to set $HOME as $SNAP_REAL_HOME
This commit is contained in:
parent
db1562e134
commit
2a231b0b57
1 changed files with 15 additions and 0 deletions
|
@ -17,14 +17,29 @@ package-repositories:
|
||||||
key-id: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
|
key-id: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
|
||||||
url: https://deb.nodesource.com/node_16.x
|
url: https://deb.nodesource.com/node_16.x
|
||||||
|
|
||||||
|
plugs:
|
||||||
|
system-gitconfig:
|
||||||
|
interface: system-files
|
||||||
|
read:
|
||||||
|
- /etc/gitconfig
|
||||||
|
user-gitconfig:
|
||||||
|
interface: personal-files
|
||||||
|
read:
|
||||||
|
- $HOME/.gitconfig
|
||||||
|
- $HOME/.config/git/config
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
hugo:
|
hugo:
|
||||||
|
environment:
|
||||||
|
HOME: $SNAP_REAL_HOME
|
||||||
command: bin/hugo
|
command: bin/hugo
|
||||||
completer: hugo-completion
|
completer: hugo-completion
|
||||||
plugs:
|
plugs:
|
||||||
- home
|
- home
|
||||||
- network-bind
|
- network-bind
|
||||||
- removable-media
|
- removable-media
|
||||||
|
- system-gitconfig
|
||||||
|
- user-gitconfig
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
git:
|
git:
|
||||||
|
|
Loading…
Reference in a new issue