mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
e6eda2a370
commit
d32ff16fd6
4 changed files with 6 additions and 6 deletions
|
@ -6,8 +6,8 @@ env:
|
||||||
git:
|
git:
|
||||||
depth: false
|
depth: false
|
||||||
go:
|
go:
|
||||||
- 1.9.7
|
- "1.10.4"
|
||||||
- "1.10.3"
|
- 1.11
|
||||||
- tip
|
- tip
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/magefile/mage"
|
name = "github.com/magefile/mage"
|
||||||
version = "v1"
|
version = "^v2.2.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
|
@ -265,7 +265,7 @@ func CheckVendor() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func isGoLatest() bool {
|
func isGoLatest() bool {
|
||||||
return strings.Contains(runtime.Version(), "1.10")
|
return strings.Contains(runtime.Version(), "1.11")
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildTags() string {
|
func buildTags() string {
|
||||||
|
|
|
@ -43,7 +43,7 @@ func (s *Spec) Transform(r Resource, t ResourceTransformation) (Resource, error)
|
||||||
Resource: r,
|
Resource: r,
|
||||||
transformation: t,
|
transformation: t,
|
||||||
transformedResourceMetadata: transformedResourceMetadata{MetaData: make(map[string]interface{})},
|
transformedResourceMetadata: transformedResourceMetadata{MetaData: make(map[string]interface{})},
|
||||||
cache: s.ResourceCache}, nil
|
cache: s.ResourceCache}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResourceTransformationCtx struct {
|
type ResourceTransformationCtx struct {
|
||||||
|
@ -337,7 +337,7 @@ func (r *transformedResource) transform(setContent bool) (err error) {
|
||||||
defer bp.PutBuffer(b2)
|
defer bp.PutBuffer(b2)
|
||||||
|
|
||||||
tctx := &ResourceTransformationCtx{
|
tctx := &ResourceTransformationCtx{
|
||||||
Data: r.transformedResourceMetadata.MetaData,
|
Data: r.transformedResourceMetadata.MetaData,
|
||||||
OpenResourcePublisher: openPublishFileForWriting,
|
OpenResourcePublisher: openPublishFileForWriting,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue