Comments (6)
Is the "std" package even defined anywhere? I don't see it in the repository.
EDIT: Wait, is this loading the golang std package? I am not sure we need to load that at all.
from blueprint.
In GitLab by @JonathanMace on Sep 16, 2023, 05:06
It's used when parsing gocode. Need to know if an import is a built in package like context, or if it is a dependency that needs to be added to the go.mod.
from blueprint.
Running go build
after the workspace generation will automatically take care of this as that command would modify the go.mod file properly if it has external dependencies.
from blueprint.
In GitLab by @JonathanMace on Sep 18, 2023, 20:01
OK, that's good. I just checked and it seems like go mod tidy
is the command that will update the go.mod
file, not go build
.
It means there is some unnecessary logic in the v2 compiler that explicitly tracks module dependencies for the go.mod file of generated modules (e.g. see plugins/golang/gogen/modulebuilder.go. Some of this won't be necessary if go mod tidy
will do it for us implicitly.
We will still need to handle unpublished modules explicitly, since go mod tidy
won't find them; currently the workspace generator updates the go.mod
of all output modules to add replace
directives to the appropriate output directory, e.g.
require require gitlab.mpi-sws.org/cld/blueprint/examples/leaf/workflow v0.0.0
replace gitlab.mpi-sws.org/cld/blueprint/examples/leaf/workflow v0.0.0 => ../workflow
The workspace generator currently has logic that pretty much covers this use case -- after we're done generating and collecting modules to the output, it will rewrite all go.mod files to add replace
directives to dependencies that exist in the output.
from blueprint.
In GitLab by @JonathanMace on Sep 18, 2023, 20:18
Opened #26 to deal with this. As a result of #26 we can remove the Builtin type and simplify Usertype to only have the package name and not the module name. Closing #6.
from blueprint.
Yes, go mod tidy
will fix this as well. When you do go build
, it automatically checks for the dependencies and downloads the various modules needed.
from blueprint.
Related Issues (20)
- [Quality of Life] Consolidate naming logic, use of service basename in wiring specs
- [Quality of Life] Remove all usage of fmt.Errorf, use errors.Errorf (in runtime code) or blueprint.Errorf (in compiler code) instead
- [Documentation] Documentation of applications and plugins (Vaastav)
- [Documentation] Documentation of applications and plugins (Jonathan) HOT 1
- [Retries] Extend the retries plugin to have timeouts HOT 1
- [Replication] Implement replication namespaces
- [Webserver] Serve static files so that we can actually implement websites for apps
- [Backends] Add RabbitMQ as a Queue backend HOT 1
- [Compiler] Optimize compilation time
- [Plugins] Add support for GoVector logger
- [Gateway] Add a Gateway runtime component + plugin
- [Applications] Implement TPC-W
- some questions about "Compiling the application" HOT 4
- Unable to invoke application HOT 3
- Env files have different values for different environment variables
- New workloadgen not working on another application HOT 2
- An Inquiry Regarding How Users Can Access Containers Built Through Blueprint HOT 1
- Failed to build dsb_hotel HOT 9
- [Plugin] OpenTelemetry Related Docker Compose Fails In Multiple Examples
- [DSB Social Network] Getting Errors When Executing Tests for DSB_SN
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 blueprint.