Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…es to better support CRT/VBA.
  • Loading branch information
sarahethompson committed Jul 4, 2023
1 parent 314efef commit 5e8afd3
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-waypoint-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ jobs:
GOARCH: ${{ inputs.goarch }}
WAYPOINT_GOOS: ${{ inputs.goos }}
WAYPOINT_GOARCH: ${{ inputs.goarch }}
BASE_VERSION: ${{ inputs.waypoint-base-version }}
PRERELEASE: ${{ inputs.waypoint-prerelease }}
CGO_ENABLED: ${{ inputs.cgo-enabled }}
CRT_BIN_NAME: ${{ steps.get-bin-name.outputs.bin-name }}
uses: hashicorp/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GIT_DIRTY=$$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)
GIT_DESCRIBE=$$(git describe --tags --always --match "v*")
GIT_IMPORT="github.com/hashicorp/waypoint/internal/version"
GOLDFLAGS="-s -w -X $(GIT_IMPORT).GitCommit=$(GIT_COMMIT)$(GIT_DIRTY) -X $(GIT_IMPORT).GitDescribe=$(GIT_DESCRIBE)"
CRT_GOLDFLAGS="-s -w -X $(GIT_IMPORT).GitCommit=$(GIT_COMMIT)$(GIT_DIRTY) -X $(GIT_IMPORT).Version=$(BASE_VERSION) -X $(GIT_IMPORT).VersionPrerelease=$(PRERELEASE)"
CRT_GOLDFLAGS="-s -w -X $(GIT_IMPORT).GitCommit=$(GIT_COMMIT)$(GIT_DIRTY)"
GO_CMD?=go
CGO_ENABLED?=0
WP_SERVER_PLATFORM?="linux/amd64"
Expand Down
2 changes: 1 addition & 1 deletion internal/ceb/ceb.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package ceb
import (
"context"
"fmt"
"github.com/hashicorp/waypoint/version"
"os"
"os/exec"
"strconv"
Expand All @@ -22,7 +23,6 @@ import (
"github.com/hashicorp/waypoint/internal/env"
"github.com/hashicorp/waypoint/internal/pkg/gatedwriter"
"github.com/hashicorp/waypoint/internal/plugin"
"github.com/hashicorp/waypoint/internal/version"
"github.com/hashicorp/waypoint/pkg/server"
pb "github.com/hashicorp/waypoint/pkg/server/gen"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/ceb/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ package ceb
import (
"context"
"fmt"
"github.com/hashicorp/waypoint/version"

"github.com/certifi/gocertifi"
"github.com/hashicorp/horizon/pkg/agent"
"github.com/hashicorp/horizon/pkg/discovery"
hznpb "github.com/hashicorp/horizon/pkg/pb"
"github.com/pkg/errors"

"github.com/hashicorp/waypoint/internal/version"
pb "github.com/hashicorp/waypoint/pkg/server/gen"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/deployment_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/hashicorp/waypoint/version"
"sort"
"strconv"
"strings"
Expand All @@ -22,7 +23,6 @@ import (
clientpkg "github.com/hashicorp/waypoint/internal/client"
"github.com/hashicorp/waypoint/internal/clierrors"
"github.com/hashicorp/waypoint/internal/pkg/flag"
"github.com/hashicorp/waypoint/internal/version"
pb "github.com/hashicorp/waypoint/pkg/server/gen"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"bytes"
"context"
"fmt"
"github.com/hashicorp/waypoint/version"
"io"
"io/ioutil"
"os"
Expand All @@ -18,13 +19,12 @@ import (

"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-plugin"
"github.com/mitchellh/cli"
"github.com/mitchellh/go-glint"

"github.com/hashicorp/waypoint-plugin-sdk/terminal"
"github.com/hashicorp/waypoint/internal/env"
"github.com/hashicorp/waypoint/internal/pkg/signalcontext"
"github.com/hashicorp/waypoint/internal/version"
"github.com/mitchellh/cli"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/release_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/hashicorp/waypoint/version"
"sort"
"strconv"
"strings"
Expand All @@ -21,7 +22,6 @@ import (
clientpkg "github.com/hashicorp/waypoint/internal/client"
"github.com/hashicorp/waypoint/internal/clierrors"
"github.com/hashicorp/waypoint/internal/pkg/flag"
"github.com/hashicorp/waypoint/internal/version"
pb "github.com/hashicorp/waypoint/pkg/server/gen"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/hashicorp/waypoint/version"
"strings"

"github.com/dustin/go-humanize"
Expand All @@ -20,7 +21,6 @@ import (
clientpkg "github.com/hashicorp/waypoint/internal/client"
"github.com/hashicorp/waypoint/internal/clierrors"
"github.com/hashicorp/waypoint/internal/pkg/flag"
"github.com/hashicorp/waypoint/internal/version"
pb "github.com/hashicorp/waypoint/pkg/server/gen"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ package cli
import (
"context"
"errors"
"github.com/hashicorp/waypoint/version"
"time"

"github.com/posener/complete"

"github.com/hashicorp/waypoint/internal/pkg/flag"
"github.com/hashicorp/waypoint/internal/version"
"github.com/hashicorp/waypoint/pkg/serverclient"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/protocolversion/current.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package protocolversion

import (
"github.com/hashicorp/waypoint/internal/version"
pb "github.com/hashicorp/waypoint/pkg/server/gen"
"github.com/hashicorp/waypoint/version"
)

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Expand Down
2 changes: 1 addition & 1 deletion version/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.0
0.12.0
11 changes: 8 additions & 3 deletions internal/version/version.go → version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ package version

import (
"bytes"
_ "embed"
"fmt"
"strings"
)

var (
// The git commit that was compiled. This will be filled in by the compiler.
GitCommit string
GitDescribe string

Version = "0.12.0" // Note: This value should match /version/VERSION!
VersionPrerelease = ""
VersionMetadata = ""
// Version and VersionPrerelease info are now being embedded directly from the VERSION file.
// VersionMetadata is being passed in via ldflags in CI, otherwise the default set here is used.
//go:embed VERSION
fullVersion string
Version, VersionPrerelease, _ = strings.Cut(strings.TrimSpace(fullVersion), "-")
VersionMetadata = ""
)

// VersionInfo
Expand Down

0 comments on commit 5e8afd3

Please sign in to comment.