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

Fix for #801: enable imports for sites that are using git submodules #837

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

deining
Copy link
Collaborator

@deining deining commented Jan 17, 2022

Unfortunately, #801 did not work as expected. This PR will fix these issues, sorry for any inconvenience caused!

Note:: Inside the [module] section, this fix makes use of the replacements configuration setting:

[module]
# imports should not apply for sites that are using git submodules 
replacements = "github.com/FortAwesome/Font-Awesome -> ., github.com/twbs/bootstrap -> ."

Replacements is available as of hugo version 0.77.

Currently the user guide states:

You need a recent extended version (we recommend version 0.75.0 or later) of Hugo

Therefore with this patch we are raising minimum required hugo version from 0.75 to 0.77 (mandatory now). I hope this is o.k.
This PR updates the user guide accordingly.

@deining deining changed the title Fixs for #801 Fix for #801 Jan 17, 2022
@deining deining changed the title Fix for #801 Fix for #801: enable imports for sites that are using git submodules Jan 17, 2022
@LisaFC
Copy link
Collaborator

LisaFC commented Jan 17, 2022

Thanks for the prompt fix!

@rogerioesteves
Copy link

rogerioesteves commented Jan 17, 2022

When I added Docsy in my project the last version of docsy is not working. I get the error "Error: module "github.com/FortAwesome/Font-Awesome" not found".

Was fixed this problem? Whats the work around?

@deining
Copy link
Collaborator Author

deining commented Jan 17, 2022

When I added Docsy in my project the last version of docsy is not working. I get the error "Error: module "github.com/FortAwesome/Font-Awesome" not found".

Was fixed this problem? Whats the work around?

Workaround:

  • navigate to your themes folder
  • create two new directory structures (empty directories):
mkdir -p github.com/twbs/bootstrap
mkdir -p github.com/FortAwesome/Font-Awesome

Does this cure your problem?

@deining deining deleted the fix2 branch November 5, 2022 07:57
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.

None yet

3 participants