This is your newly scaffolded Backstage App, Good Luck!
To start the app, run:
yarn install
yarn dev
Backstage plugins collections for dotnet
This is your newly scaffolded Backstage App, Good Luck!
To start the app, run:
yarn install
yarn dev
I was testing this plugin and it works fine until I have specified "targetPath: littlepath" in the dotnet:new action.
Worth to mentione that "littlepath" folder do not exist :)
And here is the output...
12022-10-04T11:48:55.000Z Beginning step Dotnet new webapi
22022-10-04T11:48:56.000Z info: Running dotnet new webapi script with dotnet:new scaffolder action, workspace path: /tmp/16885689-e1fc-4d3a-8513-81435cf1b9ee/littlepath {"timestamp":"2022-10-04T11:48:56.009Z"}
32022-10-04T11:48:56.000Z Error: spawn dotnet ENOENT
4 at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
5 at onErrorNT (node:internal/child_process:478:16)
6 at processTicksAndRejections (node:internal/process/task_queues:83:21)
We are getting the following error on our Backstage instance:
[1] 2023-07-06T14:02:03.940Z Beginning step Install template
[2] 2023-07-06T14:02:03.977Z Error: spawn dotnet ENOENT
[3] at ChildProcess._handle.onexit (node:internal/child_process:283:19)
[4] at onErrorNT (node:internal/child_process:476:16)
[5] at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Our Template structure:
[...]
- id: install_template
name: "Install template"
action: dotnet:template:install
input:
package: ./dotnet-api-example-template
args:
- --force
- id: create_template
name: "Create template"
action: dotnet:new
input:
template: apiexample
args:
- -n
- ${{ parameters.projectName }}
[...]
Follow-up: @jpcarpanezi
The deprecated runCommand
was removed in Backstage Scaffolder Backend 0.18.0 in favour of executeShellCommand
. This makes the plugin not compatible with recent versions of Backstage.
12022-10-04T11:48:55.000Z Beginning step Dotnet new webapi
22022-10-04T11:48:56.000Z info: Running dotnet new webapi script with dotnet:new scaffolder action, workspace path: /tmp/16885689-e1fc-4d3a-8513-81435cf1b9ee/littlepath {"timestamp":"2022-10-04T11:48:56.009Z"}
32022-10-04T11:48:56.000Z Error: spawn dotnet ENOENT
4 at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
5 at onErrorNT (node:internal/child_process:478:16)
6 at processTicksAndRejections (node:internal/process/task_queues:83:21)
Hey,
I have tried to install dotnet template from the folder and it says NO :/
- id: donettemplateinstall
name: Dotnet template install
action: dotnet:template:install
input:
package: ./dotnet/little-template
args: []
Error that I am getting:
Command dotnet failed, exit code: 9
12022-10-05T15:38:03.000Z Beginning step Dotnet template install
22022-10-05T15:38:03.000Z The following template packages will be installed:
32022-10-05T15:38:03.000Z ./dotnet/little-template
42022-10-05T15:38:03.000Z ./dotnet/little-template is not supported.
52022-10-05T15:38:03.000Z Error: Command dotnet failed, exit code: 9
6 at ChildProcess.<anonymous> (/home/tms/repos/backstage-app/app/node_modules/@backstage/plugin-scaffolder-backend/dist/index.cjs.js:869:11)
7 at ChildProcess.emit (node:events:513:28)
8 at ChildProcess.emit (node:domain:489:12)
9 at maybeClose (node:internal/child_process:1093:16)
10 at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
I know for sure that template is valid and working just fine. Also folder "dotnet" exist in the main folder with a list of templates.
What I would like to have:
Thanks ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.