Skip to content
Discussion options

You must be logged in to vote

Just an update, later we did create data in the required unified import format. And we were still getting this password error. Then we patched the docker image like,

FROM hardcoreeng/import-tool:latest

# Remove ONLY multi-letter short flags (like -pw, -ws, -ts), keep long flags (--password, --workspace...)
RUN node -e "\
const fs=require('fs'); \
const p='/usr/src/app/bundle.js'; \
let s=fs.readFileSync(p,'utf8'); \
/* Case 1: '-pw, --password <password>' -> '--password <password>' */ \
s=s.replace(/-[a-zA-Z]{2,}\\s*,\\s*(?=--)/g,''); \
/* Case 2: '-pw --password <password>' (no comma) -> '--password <password>' */ \
s=s.replace(/-[a-zA-Z]{2,}\\s+(?=--)/g,''); \
fs.writeFileSync(p,s); \
"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IamLizu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant