Skip to content

Commit

Permalink
refactor(name): rename incubator-answer
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkinStars committed Jan 7, 2025
1 parent f7731bc commit 0618947
Show file tree
Hide file tree
Showing 293 changed files with 1,627 additions and 1,627 deletions.
10 changes: 5 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ builds:
- id: build
main: ./cmd/answer/.
binary: answer
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.RawVersion}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
ldflags: -s -w -X github.com/apache/answer/cmd.Version={{.RawVersion}} -X github.com/apache/answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/answer/cmd.Time={{.Date}} -X github.com/apache/answer/cmd.BuildUser=goreleaser
flags: -v
goos:
- linux
Expand All @@ -45,7 +45,7 @@ builds:
- id: build-windows
main: ./cmd/answer/.
binary: answer
ldflags: -s -w -X github.com/apache/incubator-answer/cmd.Version={{.RawVersion}} -X github.com/apache/incubator-answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/incubator-answer/cmd.Time={{.Date}} -X github.com/apache/incubator-answer/cmd.BuildUser=goreleaser
ldflags: -s -w -X github.com/apache/answer/cmd.Version={{.RawVersion}} -X github.com/apache/answer/cmd.Revision={{.ShortCommit}} -X github.com/apache/answer/cmd.Time={{.Date}} -X github.com/apache/answer/cmd.BuildUser=goreleaser
flags: -v
goos:
- windows
Expand All @@ -57,7 +57,7 @@ builds:

archives:
- name_template: >-
apache-answer-{{ .RawVersion }}-incubating-bin-{{ .Os }}-{{ .Arch }}
apache-answer-{{ .RawVersion }}-bin-{{ .Os }}-{{ .Arch }}
files:
- src: "docs/release/LICENSE"
dst: LICENSE
Expand All @@ -81,8 +81,8 @@ changelog:

source:
enabled: true
name_template: apache-answer-{{ .RawVersion }}-incubating-src
prefix_template: "apache-answer-{{ .RawVersion }}-incubating-src/"
name_template: apache-answer-{{ .RawVersion }}-src
prefix_template: "apache-answer-{{ .RawVersion }}-src/"

# goreleaser release --skip-validate --skip-publish --clean

4 changes: 2 additions & 2 deletions .vaunt/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ version: 0.0.1
achievements:
- achievement:
name: Visionary Architect
icon: https://raw.githubusercontent.com/apache/incubator-answer/main/.vaunt/enhancement.png
icon: https://raw.githubusercontent.com/apache/answer/main/.vaunt/enhancement.png
description: Awarded for bringing up enhancement, dream big!
triggers:
- trigger:
Expand All @@ -28,7 +28,7 @@ achievements:
condition: labels in ['enhancement'] & labels in ['LGTM']
- achievement:
name: Bug Hunter
icon: https://raw.githubusercontent.com/apache/incubator-answer/main/.vaunt/bug.png
icon: https://raw.githubusercontent.com/apache/answer/main/.vaunt/bug.png
description: Awarded for identifying real bugs, well spotted!
triggers:
- trigger:
Expand Down
2 changes: 1 addition & 1 deletion DISCLAIMER
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache Answer (incubating) is an effort undergoing incubation at the Apache
Apache Answer is an effort undergoing incubation at the Apache
Software Foundation (ASF), sponsored by the Apache Incubator PMC.

Incubation is required of all newly accepted projects until a further review
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ARG GOPROXY

ENV GOPATH /go
ENV GOROOT /usr/local/go
ENV PACKAGE github.com/apache/incubator-answer
ENV PACKAGE github.com/apache/answer
ENV BUILD_DIR ${GOPATH}/src/${PACKAGE}
ENV ANSWER_MODULE ${BUILD_DIR}

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DOCKER_CMD=docker

GO_ENV=CGO_ENABLED=0 GO111MODULE=on
Revision=$(shell git rev-parse --short HEAD 2>/dev/null || echo "")
GO_FLAGS=-ldflags="-X github.com/apache/incubator-answer/cmd.Version=$(VERSION) -X 'github.com/apache/incubator-answer/cmd.Revision=$(Revision)' -X 'github.com/apache/incubator-answer/cmd.Time=`date +%s`' -extldflags -static"
GO_FLAGS=-ldflags="-X github.com/apache/answer/cmd.Version=$(VERSION) -X 'github.com/apache/answer/cmd.Revision=$(Revision)' -X 'github.com/apache/answer/cmd.Time=`date +%s`' -extldflags -static"
GO=$(GO_ENV) "$(shell which go)"

build: generate
Expand Down
4 changes: 2 additions & 2 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache Answer (incubating)
Copyright 2023-2024 The Apache Software Foundation
Apache Answer
Copyright 2023-2025 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (https://www.apache.org/).
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ A Q&A platform software for teams at any scales. Whether it’s a community foru

To learn more about the project, visit [answer.apache.org](https://answer.apache.org).

[![LICENSE](https://img.shields.io/github/license/apache/incubator-answer)](https://github.com/apache/incubator-answer/blob/main/LICENSE)
[![LICENSE](https://img.shields.io/github/license/apache/answer)](https://github.com/apache/answer/blob/main/LICENSE)
[![Language](https://img.shields.io/badge/language-go-blue.svg)](https://golang.org/)
[![Language](https://img.shields.io/badge/language-react-blue.svg)](https://reactjs.org/)
[![Go Report Card](https://goreportcard.com/badge/github.com/apache/incubator-answer)](https://goreportcard.com/report/github.com/apache/incubator-answer)
[![Go Report Card](https://goreportcard.com/badge/github.com/apache/answer)](https://goreportcard.com/report/github.com/apache/answer)
[![Discord](https://img.shields.io/badge/discord-chat-5865f2?logo=discord&logoColor=f5f5f5)](https://discord.gg/Jm7Y4cbUej)

## Screenshots
Expand Down Expand Up @@ -65,4 +65,4 @@ See [CONTRIBUTING](https://answer.apache.org/community/contributing) for ways to

## License

[Apache License 2.0](https://github.com/apache/incubator-answer/blob/main/LICENSE)
[Apache License 2.0](https://github.com/apache/answer/blob/main/LICENSE)
2 changes: 1 addition & 1 deletion cmd/answer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
package main

import (
answercmd "github.com/apache/incubator-answer/cmd"
answercmd "github.com/apache/answer/cmd"
)

// main godoc
Expand Down
10 changes: 5 additions & 5 deletions cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
"os"
"strings"

"github.com/apache/incubator-answer/internal/base/conf"
"github.com/apache/incubator-answer/internal/cli"
"github.com/apache/incubator-answer/internal/install"
"github.com/apache/incubator-answer/internal/migrations"
"github.com/apache/incubator-answer/plugin"
"github.com/apache/answer/internal/base/conf"
"github.com/apache/answer/internal/cli"
"github.com/apache/answer/internal/install"
"github.com/apache/answer/internal/migrations"
"github.com/apache/answer/plugin"
"github.com/segmentfault/pacman/log"
"github.com/spf13/cobra"
)
Expand Down
12 changes: 6 additions & 6 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ import (
"os"
"time"

"github.com/apache/incubator-answer/internal/base/conf"
"github.com/apache/incubator-answer/internal/base/constant"
"github.com/apache/incubator-answer/internal/base/cron"
"github.com/apache/incubator-answer/internal/cli"
"github.com/apache/incubator-answer/internal/schema"
"github.com/apache/answer/internal/base/conf"
"github.com/apache/answer/internal/base/constant"
"github.com/apache/answer/internal/base/cron"
"github.com/apache/answer/internal/cli"
"github.com/apache/answer/internal/schema"
"github.com/gin-gonic/gin"
"github.com/segmentfault/pacman"
"github.com/segmentfault/pacman/contrib/log/zap"
"github.com/segmentfault/pacman/contrib/server/http"
"github.com/segmentfault/pacman/log"
)

// go build -ldflags "-X github.com/apache/incubator-answer/cmd.Version=x.y.z"
// go build -ldflags "-X github.com/apache/answer/cmd.Version=x.y.z"
var (
// Name is the name of the project
Name = "answer"
Expand Down
26 changes: 13 additions & 13 deletions cmd/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
package answercmd

import (
"github.com/apache/incubator-answer/internal/base/conf"
"github.com/apache/incubator-answer/internal/base/cron"
"github.com/apache/incubator-answer/internal/base/data"
"github.com/apache/incubator-answer/internal/base/middleware"
"github.com/apache/incubator-answer/internal/base/server"
"github.com/apache/incubator-answer/internal/base/translator"
"github.com/apache/incubator-answer/internal/controller"
"github.com/apache/incubator-answer/internal/controller/template_render"
"github.com/apache/incubator-answer/internal/controller_admin"
"github.com/apache/incubator-answer/internal/repo"
"github.com/apache/incubator-answer/internal/router"
"github.com/apache/incubator-answer/internal/service"
"github.com/apache/incubator-answer/internal/service/service_config"
"github.com/apache/answer/internal/base/conf"
"github.com/apache/answer/internal/base/cron"
"github.com/apache/answer/internal/base/data"
"github.com/apache/answer/internal/base/middleware"
"github.com/apache/answer/internal/base/server"
"github.com/apache/answer/internal/base/translator"
"github.com/apache/answer/internal/controller"
"github.com/apache/answer/internal/controller/template_render"
"github.com/apache/answer/internal/controller_admin"
"github.com/apache/answer/internal/repo"
"github.com/apache/answer/internal/router"
"github.com/apache/answer/internal/service"
"github.com/apache/answer/internal/service/service_config"
"github.com/google/wire"
"github.com/segmentfault/pacman"
"github.com/segmentfault/pacman/log"
Expand Down
170 changes: 85 additions & 85 deletions cmd/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/release/NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache Answer (incubating)
Copyright 2024 The Apache Software Foundation
Apache Answer
Copyright 2025 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (https://www.apache.org/).
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

module github.com/apache/incubator-answer
module github.com/apache/answer

go 1.22.0

Expand Down
Loading

0 comments on commit 0618947

Please sign in to comment.