website/internal/build/magefiles/projectroot.go
Dan Anglin ac7d73f013
checkpoint: update
- added profiles and services to nanoc.yaml
- created an internal module for the build code so that those
  dependencies are not included in the main module.
- upgraded Go to v1.22 and specified that only the GET method is valid
  for the root path.
2024-02-07 15:51:29 +00:00

16 lines
211 B
Go

//go:build mage
package main
import (
"fmt"
"os"
)
func changeToProjectRoot() error {
if err := os.Chdir("../.."); err != nil {
return fmt.Errorf("unable to change directory; %w", err)
}
return nil
}