Skip to content

Zod schema fails to parse if the submodule name has a period in it #94

@stephansama

Description

@stephansama

Hey all, just wanted to flag a small issue I ran into while using the update-git-submodules action with my dotfiles repo.

Initially, I had my submodules named and located by their full path, like this:

[submodule ".config/nvim"]
  path = .config/nvim
  url = https://github.com/stephansama/nvim.git

When configured this way, I was getting the following error:

[
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "submodule \"",
      "path"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "submodule \"",
      "url"
    ],
    "message": "Required"
  }
]

After some troubleshooting, I was able to fix it by removing the prefix and just using the repository name:

[submodule "nvim"]
  path = .config/nvim
  url = https://github.com/stephansama/nvim.git

Not a huge issue, but wanted to share in case anyone else runs into the same thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions