Skip to content

Commit

Permalink
Merge pull request juju#16552 from barrettj12/minimal
Browse files Browse the repository at this point in the history
juju#16552

Currently, you can't build the Juju client with no providers:
```
$ BUILD_TAGS=minimal make go-client-build
Building [github.com/juju/juju/cmd/juju](http://github.com/juju/juju/cmd/juju) for linux/amd64
package [github.com/juju/juju/cmd/juju](http://github.com/juju/juju/cmd/juju)
 imports [github.com/juju/juju/provider/all](http://github.com/juju/juju/provider/all): build constraints exclude all Go files in /home/jb/git/juju/juju/2.9/provider/all
make: prdesc [Makefile:259: /home/jb/git/juju/juju/2.9/_build/linux_amd64/bin/juju] Error 1
```

Add an empty file to the `provider/all` package, so that you can compile Juju with `BUILD_TAGS=minimal` and no providers.
  • Loading branch information
jujubot authored Nov 8, 2023
2 parents 7f66026 + b847b6a commit 0ec38c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions provider/all/none.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright 2023 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package all

// This file is here so that you can compile Juju with no providers
// (i.e. BUILD_TAGS='minimal'). Otherwise, Go will complain that the build
// constraints exclude all Go files in this package.

0 comments on commit 0ec38c2

Please sign in to comment.