Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 50feb18

Browse files
authored
Mess with quoting
1 parent eedb5d7 commit 50feb18

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const detector = {
5959
// to build the build target It does not provide association between the
6060
// dependencies (i.e. which dependencies depend on which)
6161
// eslint-disable-next-line quotes
62-
const goListDependencies = `go list -deps -f '{{define "M"}}{{.Path}}@{{.Version}}{{end}}{{with .Module}}{{if not .Main}}{{if .Replace}}{{template "M" .Replace}}{{else}}{{template "M" .}}{{end}}{{end}}{{end}}'`;
62+
const goListDependencies = `go list -deps -f '{{define \\"M\\"}}{{.Path}}@{{.Version}}{{end}}{{with .Module}}{{if not .Main}}{{if .Replace}}{{template \\"M\\" .Replace}}{{else}}{{template \\"M\\" .}}{{end}}{{end}}{{end}}'`;
6363
// Enumerate directories
6464
function detect() {
6565
return __awaiter(this, void 0, void 0, function* () {

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const detector = {
2323
// to build the build target It does not provide association between the
2424
// dependencies (i.e. which dependencies depend on which)
2525
// eslint-disable-next-line quotes
26-
const goListDependencies = `go list -deps -f '{{define "M"}}{{.Path}}@{{.Version}}{{end}}{{with .Module}}{{if not .Main}}{{if .Replace}}{{template "M" .Replace}}{{else}}{{template "M" .}}{{end}}{{end}}{{end}}'`
26+
const goListDependencies = `go list -deps -f '{{define \\"M\\"}}{{.Path}}@{{.Version}}{{end}}{{with .Module}}{{if not .Main}}{{if .Replace}}{{template \\"M\\" .Replace}}{{else}}{{template \\"M\\" .}}{{end}}{{end}}{{end}}'`
2727

2828
// Enumerate directories
2929
async function detect () {

0 commit comments

Comments
 (0)