Skip to content

Add support for Hugo modules #6860

Open
@razonyang

Description

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

Hi, is it possible to add support for Hugo modules, which base on Golang Modules?

I set up the Dependabot on my repo with gomod, but found that go.mod and go.sum will be emptied.

Related Config:

version: 2
updates:
  - package-ecosystem: "gomod"
    directory: "/"
    schedule:
      interval: "daily"
  
  - package-ecosystem: "gomod"
    directory: "/modules/blog"
    schedule:
      interval: "daily"
  
  - package-ecosystem: "gomod"
    directory: "/modules/meta/recommended"
    schedule:
      interval: "daily"
    allow:
      - dependency-type: "all"

Related PRs:

Is there a way to replace the go get and go mod tidy with hugo mod get and hugo mod tidy respectively?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions