Hi, Not a committed port, so I do not know if it is the right solution. I managed to limit the networking in fetch phase in the port below:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272180 in short, I took the following steps in fetch phase, 1. HOME=${WRKDIR} npm install --ignore-scripts 2. backup ${WRKDIR}/.npm under ${DISTDIR} in extract phase 3. extract backup .npm under ${WRKDIR} in build phase 4. HOME=${WRKDIR} npm install --offline Another solution is electron port. When I looked into in (around version 22), it archived yarn cache somewhere and fetched it. On Fri, 28 Jun 2024 07:27:06 +0200 (CEST) Ronald Klop <ronald-li...@klop.ws> wrote: > Hi, > > I’m not experienced in npm ports. This new port does networking after > the fetch phase. Can somebody else suggest a good solution? > > Regards, > Ronald > > Van: bugzilla-nore...@freebsd.org > Datum: 27 juni 2024 13:41 > Aan: ron...@freebsd.org > Onderwerp: [Bug 279519] [NEW PORT] databases/mongosh: mongodb > official Shell CLI > > > > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279519 > > > > --- Comment #3 from Fabien Amelinck --- > > (In reply to Ronald Klop from comment #2) > > > > Thank you for taking the time to review my port submission. > > > > I actually know, that's why I have > > ALLOW_NETWORKING_PACKAGES="mongosh" in poudriere.conf. > > > > What do you suggest ? > > A repo with the node_modules populated or an ugly "npm install" at > > fetch step ? > > > > I didn't find how electron and vscode are managing this constraint. > > > > -- > > You are receiving this mail because: > > You are on the CC list for the bug. > > > > > > > >