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

Add hugo.Deps #8949

Closed
bep opened this issue Sep 1, 2021 · 2 comments · Fixed by #9372
Closed

Add hugo.Deps #8949

bep opened this issue Sep 1, 2021 · 2 comments · Fixed by #9372
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Sep 1, 2021

There are situations where it would be useful to have the Hugo Module dependency information available in the templates (mostly, for JS libraries built from /assets, to know: What version of this library is currently running?).

So I propose we add hugo.Deps that lists the dependencies with some basic info:

  • Path (e.g. github.com/bep/mylib)
  • Version (e.g. v1.0.0)
  • Hash (source hash)

And then a lookup method so you can do $mylib := hugo.Deps.ByPath "foo"

@bep bep added the Proposal label Sep 1, 2021
@bep bep self-assigned this Sep 1, 2021
@bep bep modified the milestones: v0.88, v0.89 Sep 1, 2021
@regisphilibert
Copy link
Member

Do we need a lookup method? Can't where do the job?

@bep bep added Enhancement and removed Proposal labels Sep 16, 2021
@bep bep removed their assignment Sep 16, 2021
@bep bep modified the milestones: v0.89, v0.90 Nov 2, 2021
@BillyWildHigh BillyWildHigh mentioned this issue Nov 19, 2021
@bep bep modified the milestones: v0.90, v0.91.0 Dec 8, 2021
@bep bep modified the milestones: v0.91.0, v0.92.0 Dec 20, 2021
@bep bep self-assigned this Jan 11, 2022
@bep bep mentioned this issue Jan 11, 2022
bep added a commit to bep/hugo that referenced this issue Jan 11, 2022
bep added a commit to bep/hugo that referenced this issue Jan 11, 2022
bep added a commit to bep/hugo that referenced this issue Jan 11, 2022
@bep bep closed this as completed in #9372 Jan 11, 2022
bep added a commit that referenced this issue Jan 11, 2022
bep added a commit that referenced this issue Jan 11, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants