Comments (5)
I don’t believe this is supported net because node looks up the hierarchy for modules. In order to enable this we would need to add the modules location to the explicit lookup path environment variable for node.
From: João Moreno [mailto:[email protected]]
Sent: Thursday, July 30, 2015 6:31 PM
To: Microsoft/vso-agent [email protected]
Subject: [vso-agent] Exception when placing work directory outside of agent (linux, osx) (#44)
If I create a build agent at /agent, it will use a child of that directory as a working directory.
I want to use a separate directory as a working directory, for performance reasons. I edited the .agent file and changed it to /work.
Build steps now fail with
##[Error] 2015-07-30T22:27:10.941Z: module.js:338
##[Error] 2015-07-30T22:27:10.943Z: throw err;
##[Error] 2015-07-30T22:27:10.943Z: ^
##[Error] 2015-07-30T22:27:10.943Z: Error: Cannot find module 'vso-task-lib'
##[Error] 2015-07-30T22:27:10.943Z: at Function.Module._resolveFilename (module.js:336:15)
##[Error] 2015-07-30T22:27:10.943Z: at Function.Module._load (module.js:278:25)
##[Error] 2015-07-30T22:27:10.943Z: at Module.require (module.js:365:17)
##[Error] 2015-07-30T22:27:10.943Z: at require (module.js:384:17)
##[Error] 2015-07-30T22:27:10.943Z: at Object. (/work/tasks/NpmInstall/0.1.2/npminstall.js:2:10)
##[Error] 2015-07-30T22:27:10.943Z: at Module._compile (module.js:460:26)
##[Error] 2015-07-30T22:27:10.943Z: at Object.Module._extensions..js (module.js:478:10)
##[Error] 2015-07-30T22:27:10.943Z: at Module.load (module.js:355:32)
##[Error] 2015-07-30T22:27:10.943Z: at Function.Module._load (module.js:310:12)
##[Error] 2015-07-30T22:27:10.943Z: at Function.Module.runMain (module.js:501:10)
##[Error] 2015-07-30T22:27:10.943Z:
##[Error] 2015-07-30T22:27:11.811Z: Return code: 1
Is this not supported?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/44.
from vso-agent.
Yeah, not supported yet. We pulled it from the config experience until everything does the right thing (set the node module env vars etc...
from vso-agent.
We're cutting this as we're starting on one core-clr agent soon
from vso-agent.
@bryanmacfarlane so you'll be definitely dropping the Node.JS one?
from vso-agent.
That's the current plan. The core-CLR one will run on win, osx, Linux.
We considered making the nodejs one the one agent. Long discussions and pros/cons. I like that the js source is right there to tweak/patch, but I like async/await in C# (yeah, coming to TS). We also have other code in VSO that's CS to leverage and standardize on.
If you have feedback or thoughts, we would love to hear it. We haven't started the effort yet.
from vso-agent.
Related Issues (20)
- Enable non interactive configuration and run HOT 2
- Credentials on cloning git submodules HOT 3
- Step with "Continue on Error" does not end if step fails HOT 4
- Agents failing | Invalid Configuration HOT 1
- raspberry3 HOT 7
- "Unauthorized" HOT 3
- Access Denied while trying to start the Agent. macOS VM HOT 10
- Release defination failing after upgrade a task HOT 1
- Secret variables are not masked in logs HOT 1
- Build agent (1.95.1 & 1.95.3) creates server workspace HOT 1
- Build Job got error: VS30063: You are not authorized to access HOT 1
- ANT faliure on VSTS agent HOT 2
- Basic authentication - typo HOT 1
- Build sources directory is not cleaned if it contains other Git repositories HOT 1
- svc script needs an option to set the user HOT 1
- No support for Red Hat Enterprise Linux 6.7 in the new agent HOT 2
- Task Group: Step with "Always Run" does not run if previous step fails HOT 2
- Mark repo as Archived
- VSTS Release Definition timeout value on Options tab
- Failed to extract zip (first step)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vso-agent.